- cleaned .spec file
This commit is contained in:
parent
bf48e81cd6
commit
e683e5ff76
@ -1,5 +1,6 @@
|
|||||||
%define perl_version %(eval "`%{__perl} -V:version`"; echo $version)
|
%global perl_version %(eval "`%{__perl} -V:version`"; echo $version)
|
||||||
|
|
||||||
|
Summary: File transfer utilities between Linux and PalmPilots
|
||||||
Name: pilot-link
|
Name: pilot-link
|
||||||
Version: 0.12.5
|
Version: 0.12.5
|
||||||
Release: 16%{?dist}
|
Release: 16%{?dist}
|
||||||
@ -10,36 +11,27 @@ Epoch: 2
|
|||||||
# kittykiller.c GPLv2+
|
# kittykiller.c GPLv2+
|
||||||
License: GPLv2 and GPLv2+ and LGPLv2+ and Public Domain
|
License: GPLv2 and GPLv2+ and LGPLv2+ and Public Domain
|
||||||
Group: Applications/Communications
|
Group: Applications/Communications
|
||||||
Summary: File transfer utilities between Linux and PalmPilots
|
|
||||||
URL: http://www.pilot-link.org/
|
URL: http://www.pilot-link.org/
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
Source0: http://downloads.pilot-link.org/%{name}-%{version}.tar.bz2
|
Source0: http://downloads.pilot-link.org/%{name}-%{version}.tar.bz2
|
||||||
Source3: blacklist-visor
|
Source1: blacklist-visor
|
||||||
Source4: README.fedora
|
Source2: README.fedora
|
||||||
Source5: 60-pilot.perms
|
Source3: 60-pilot.perms
|
||||||
Source6: 69-pilot-link.rules
|
Source4: 69-pilot-link.rules
|
||||||
|
|
||||||
|
Patch0: pilot-link-0.12.1-var.patch
|
||||||
|
Patch1: pilot-link-0.12.2-open.patch
|
||||||
|
Patch2: pilot-link-0.12.3-clio.patch
|
||||||
|
Patch3: pilot-link-0.12.5-mp.patch
|
||||||
|
Patch4: pilot-link-0.12.5-redefinePerlsymbols.patch
|
||||||
|
Patch5: pilot-link-0.12.5-compiler_warnings.patch
|
||||||
|
Patch6: pilot-link-0.12.5-ftbfs-f19.patch
|
||||||
|
Patch7: pilot-link-0.12.5-aarch64.patch
|
||||||
|
|
||||||
ExcludeArch: s390 s390x
|
ExcludeArch: s390 s390x
|
||||||
Patch4: pilot-link-0.12.1-var.patch
|
BuildRequires: perl(ExtUtils::MakeMaker), libpng-devel, readline-devel
|
||||||
Patch6: pilot-link-0.12.2-open.patch
|
BuildRequires: libusb-devel, bluez-libs-devel
|
||||||
Patch10: pilot-link-0.12.3-clio.patch
|
|
||||||
Patch11: pilot-link-0.12.5-mp.patch
|
|
||||||
Patch12: pilot-link-0.12.5-redefinePerlsymbols.patch
|
|
||||||
Patch13: pilot-link-0.12.5-compiler_warnings.patch
|
|
||||||
Patch14: pilot-link-0.12.5-ftbfs-f19.patch
|
|
||||||
Patch15: pilot-link-0.12.5-aarch64.patch
|
|
||||||
|
|
||||||
Requires: pilot-link-libs = %{epoch}:%{version}-%{release}
|
Requires: pilot-link-libs = %{epoch}:%{version}-%{release}
|
||||||
|
|
||||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
||||||
BuildRequires: libpng-devel
|
|
||||||
BuildRequires: readline-devel
|
|
||||||
BuildRequires: autoconf
|
|
||||||
BuildRequires: automake
|
|
||||||
BuildRequires: libtool
|
|
||||||
BuildRequires: libusb-devel
|
|
||||||
BuildRequires: bluez-libs-devel
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This suite of tools allows you to upload and download programs and
|
This suite of tools allows you to upload and download programs and
|
||||||
data files between a Linux/UNIX machine and the PalmPilot. It has a
|
data files between a Linux/UNIX machine and the PalmPilot. It has a
|
||||||
@ -55,8 +47,7 @@ Hat Linux system.
|
|||||||
Summary: PalmPilot development header files
|
Summary: PalmPilot development header files
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Requires: pilot-link-libs = %{epoch}:%{version}-%{release}
|
Requires: pilot-link-libs = %{epoch}:%{version}-%{release}
|
||||||
Requires: libpng-devel
|
Requires: libpng-devel, readline-devel
|
||||||
Requires: readline-devel
|
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
This package contains the development headers that are used to build
|
This package contains the development headers that are used to build
|
||||||
@ -88,14 +79,14 @@ Libraries for applications communicating with PalmPilot
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch4 -p1 -b .var
|
%patch0 -p1 -b .var
|
||||||
%patch6 -p1 -b .open
|
%patch1 -p1 -b .open
|
||||||
%patch10 -p1 -b .clio
|
%patch2 -p1 -b .clio
|
||||||
%patch11 -p1 -b .mp
|
%patch3 -p1 -b .mp
|
||||||
%patch12 -p1 -b .symbol
|
%patch4 -p1 -b .symbol
|
||||||
%patch13 -p1 -b .compiler
|
%patch5 -p1 -b .compiler
|
||||||
%patch14 -p1 -b .ftbfs-f19
|
%patch6 -p1 -b .ftbfs-f19
|
||||||
%patch15 -p1 -b .aarch64
|
%patch7 -p1 -b .aarch64
|
||||||
iconv -f windows-1252 -t UTF8 doc/README.usb > doc/README.usb.aux
|
iconv -f windows-1252 -t UTF8 doc/README.usb > doc/README.usb.aux
|
||||||
mv doc/README.usb.aux doc/README.usb
|
mv doc/README.usb.aux doc/README.usb
|
||||||
iconv -f windows-1252 -t UTF8 ChangeLog > ChangeLog.aux
|
iconv -f windows-1252 -t UTF8 ChangeLog > ChangeLog.aux
|
||||||
@ -117,12 +108,9 @@ mv NEWS.aux NEWS
|
|||||||
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
||||||
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
||||||
|
|
||||||
|
make %{?_smp_mflags}
|
||||||
make
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf %{buildroot}
|
|
||||||
|
|
||||||
make install DESTDIR=%{buildroot} libdir=%{_libdir}
|
make install DESTDIR=%{buildroot} libdir=%{_libdir}
|
||||||
make install -C doc/man DESTDIR=%{buildroot} libdir=%{_libdir}
|
make install -C doc/man DESTDIR=%{buildroot} libdir=%{_libdir}
|
||||||
|
|
||||||
@ -157,27 +145,23 @@ rm -f %{buildroot}%{_bindir}/pilot-prc
|
|||||||
|
|
||||||
# Put visor to blacklist
|
# Put visor to blacklist
|
||||||
mkdir -p %{buildroot}%{_sysconfdir}/modprobe.d/
|
mkdir -p %{buildroot}%{_sysconfdir}/modprobe.d/
|
||||||
install -p -m644 %{SOURCE3} %{buildroot}%{_sysconfdir}/modprobe.d/blacklist-visor.conf
|
install -p -m644 %{SOURCE1} %{buildroot}%{_sysconfdir}/modprobe.d/blacklist-visor.conf
|
||||||
|
|
||||||
# put README.fedora into tree
|
# put README.fedora into tree
|
||||||
cp %{SOURCE4} README.fedora
|
cp %{SOURCE2} README.fedora
|
||||||
|
|
||||||
# install visor configs to share/udev
|
# install visor configs to share/udev
|
||||||
install -p -m644 %{SOURCE5} %{buildroot}%{_datadir}/pilot-link/udev
|
install -p -m644 %{SOURCE3} %{buildroot}%{_datadir}/pilot-link/udev
|
||||||
|
|
||||||
# now that rules are moved out HAL, install to /lib/udev/
|
# now that rules are moved out HAL, install to /lib/udev/
|
||||||
install -d %{buildroot}/lib/udev/rules.d/
|
install -d %{buildroot}/lib/udev/rules.d/
|
||||||
install -p -m644 %{SOURCE6} %{buildroot}/lib/udev/rules.d/
|
install -p -m644 %{SOURCE4} %{buildroot}/lib/udev/rules.d/
|
||||||
|
|
||||||
%post libs -p /sbin/ldconfig
|
%post libs -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun libs -p /sbin/ldconfig
|
%postun libs -p /sbin/ldconfig
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf %{buildroot}
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc COPYING ChangeLog README NEWS doc/README.usb doc/README.debugging doc/README.libusb README.fedora
|
%doc COPYING ChangeLog README NEWS doc/README.usb doc/README.debugging doc/README.libusb README.fedora
|
||||||
%{_bindir}/*
|
%{_bindir}/*
|
||||||
%exclude %{_bindir}/pilot-ietf2datebook
|
%exclude %{_bindir}/pilot-ietf2datebook
|
||||||
@ -188,14 +172,12 @@ rm -rf %{buildroot}
|
|||||||
%exclude %{_mandir}/man1/ietf2datebook*
|
%exclude %{_mandir}/man1/ietf2datebook*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{_libdir}/*.so
|
%{_libdir}/*.so
|
||||||
%{_libdir}/pkgconfig/*
|
%{_libdir}/pkgconfig/*
|
||||||
%{_includedir}/*
|
%{_includedir}/*
|
||||||
%{_datadir}/aclocal/*.m4
|
%{_datadir}/aclocal/*.m4
|
||||||
|
|
||||||
%files perl
|
%files perl
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{_bindir}/pilot-ietf2datebook
|
%{_bindir}/pilot-ietf2datebook
|
||||||
%{_bindir}/pilot-sync-plan
|
%{_bindir}/pilot-sync-plan
|
||||||
%{_bindir}/pilot-undelete
|
%{_bindir}/pilot-undelete
|
||||||
@ -204,7 +186,6 @@ rm -rf %{buildroot}
|
|||||||
%{perl_vendorarch}/PDA*
|
%{perl_vendorarch}/PDA*
|
||||||
|
|
||||||
%files libs
|
%files libs
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc COPYING
|
%doc COPYING
|
||||||
%{_libdir}/*.so.*
|
%{_libdir}/*.so.*
|
||||||
%config(noreplace) %{_sysconfdir}/modprobe.d/blacklist-visor.conf
|
%config(noreplace) %{_sysconfdir}/modprobe.d/blacklist-visor.conf
|
||||||
@ -214,6 +195,7 @@ rm -rf %{buildroot}
|
|||||||
* Wed Apr 10 2013 Peter Schiffer <pschiffe@redhat.com> - 2:0.12.5-16
|
* Wed Apr 10 2013 Peter Schiffer <pschiffe@redhat.com> - 2:0.12.5-16
|
||||||
- resolves: #926340
|
- resolves: #926340
|
||||||
added support for aarch64
|
added support for aarch64
|
||||||
|
- cleaned .spec file
|
||||||
|
|
||||||
* Mon Feb 25 2013 Peter Schiffer <pschiffe@redhat.com> - 2:0.12.5-15
|
* Mon Feb 25 2013 Peter Schiffer <pschiffe@redhat.com> - 2:0.12.5-15
|
||||||
- resolves: #914386
|
- resolves: #914386
|
||||||
|
Loading…
Reference in New Issue
Block a user