Witam,

Stworzyłem swój pierwszy spec. Kompiluje się na x86 i powinien też x86_64. Mógłby ktoś sprawdzić czy poprawnie go napisałem.


Janosik
Summary:        MAC-Telnet for Linux
Summary(pl.UTF-8):      MAC-Telnet dla Linux
Name:           MAC-Telnet
Version:        0.4.0
Release:        0.1
License:        GPL v2
Group:          Networking
Source0:        v%{version}.tar.gz
# Source0-md5:  bc92bfa5c9878dbfc25a78a88914771a
URL:            https://github.com/haakonnessjoen/MAC-Telnet/archive/
Patch0:         001-fix-Makefile.patch
#BuildRequires: -
#Requires:      -
BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
%description -l pl.UTF-8
Klient i serwer MAC Telnet służący do połaczenie z urządzeniami
Microtik i komputerĂłw z systemem Linux przez MAC adres.
%prep
%setup -q
%patch0 -p0
%build
%{__make}

%install
rm -rf $RPM_BUILD_ROOT

%{__make} install \
        DESTDIR=$RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%doc README.markdown
%attr(755,root,root) %{_sbindir}/mactelnetd
%attr(755,root,root) %{_bindir}/mndp
%attr(755,root,root) %{_bindir}/macping
%attr(755,root,root) %{_bindir}/mactelnet
%{_mandir}/man1/*
%attr(600,root,root) %{_sysconfdir}/mactelnetd.users
--- ./MAC-Telnet-0.4.0/Makefile 2012-07-17 22:25:21.000000000 +0200
+++ ./Makefile  2014-01-11 15:54:19.614153035 +0100
@@ -20,9 +20,9 @@
        install macping $(DESTDIR)/usr/bin/
        install mactelnet $(DESTDIR)/usr/bin/
        install -d $(DESTDIR)/usr/sbin
-       install -o root mactelnetd $(DESTDIR)/usr/sbin/
+       install mactelnetd $(DESTDIR)/usr/sbin/
        install -d $(DESTDIR)/etc
-       install -m 600 -o root config/mactelnetd.users $(DESTDIR)/etc/
+       install config/mactelnetd.users $(DESTDIR)/etc/
 
 install-docs:
        install -d $(DESTDIR)/usr/share/man/man1/
_______________________________________________
pld-users-pl mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-users-pl

Odpowiedź listem elektroniczym