|
@@ -1,6 +1,6 @@
|
|
|
%define ver 0.12.5
|
|
|
%define srcver %{ver}
|
|
|
-%define rel 2%{?_dist_release}
|
|
|
+%define rel 3%{?_dist_release}
|
|
|
%define support_perl 0
|
|
|
|
|
|
Name: pilot-link
|
|
@@ -10,22 +10,30 @@ Version: %{ver}
|
|
|
Release: %{rel}
|
|
|
Epoch: 1
|
|
|
|
|
|
-Group: Applications/Other
|
|
|
-License: GPL/LGPL
|
|
|
+# libpisock/md5.c Public Domain
|
|
|
+# libpisock/blob.c LGPLv2+
|
|
|
+# libpisock/contact.c GPLv2
|
|
|
+# kittykiller.c GPLv2+
|
|
|
+License: GPLv2 and GPLv2+ and LGPLv2+ and Public Domain
|
|
|
+Group: Applications/Communications
|
|
|
URL: http://www.pilot-link.org/
|
|
|
|
|
|
-Source0: http://downloads.pilot-link.org/pilot-link-%{version}.tar.bz2
|
|
|
+Source0: http://downloads.pilot-link.org/pilot-link-%{version}.tar.bz2
|
|
|
Source1: connect-palm-ppp.tar.bz2
|
|
|
Source2: 60-libpisock.rules.vine
|
|
|
+Source3: 60-pilot.perms
|
|
|
|
|
|
-# (fc) 0.10.99 fix python/perl installation
|
|
|
-Patch1: pilot-link-0.11.0-perlmd5.patch
|
|
|
-Patch2: pilot-link-0.11.0-perlpollute.patch
|
|
|
-Patch3: pilot-link-0.11.2-malsync.patch
|
|
|
+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
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
BuildRequires: bison >= 1.35
|
|
|
BuildRequires: libusb-devel >= 0.1
|
|
|
+BuildRequires: libpng-devel
|
|
|
BuildRequires: readline-devel
|
|
|
BuildRequires: bluez-libs-devel
|
|
|
BuildRequires: popt-devel
|
|
@@ -59,66 +67,76 @@ Palm handheld device を Vine Linux システムで同期させたい場合は
|
|
|
pilot-link をインストールします。
|
|
|
|
|
|
%package libs
|
|
|
-Summary: Runtime libraries for %{name}
|
|
|
-Summary(ja): %{name} のランタイムライブラリ
|
|
|
+Summary: PalmPilot libraries
|
|
|
+Summary(ja): Palm handheld ライブラリ
|
|
|
Group: System Environment/Libraries
|
|
|
-Requires: libusb >= 0.1
|
|
|
|
|
|
%description libs
|
|
|
-This package provides the shared libraries for any pilot-link client
|
|
|
-program or interface.
|
|
|
+Libraries for applications communicating with PalmPilot
|
|
|
|
|
|
%package devel
|
|
|
Summary: PalmPilot development header files.
|
|
|
Summary(ja): Palm handheld プログラム開発用のヘッダ ファイル
|
|
|
Group: Development/Libraries
|
|
|
-Requires: %{name}-libs = %{epoch}:%{version}
|
|
|
+Requires: %{name}-libs = %{epoch}:%{version}-%{release}
|
|
|
|
|
|
%description devel
|
|
|
This package contains the development headers that are used to build
|
|
|
-the pilot-link package. It also includes the static libraries
|
|
|
-necessary to build static pilot apps.
|
|
|
+the pilot-link package.
|
|
|
|
|
|
If you want to develop PalmPilot synchronizing applications, you'll
|
|
|
need to install pilot-link-devel.
|
|
|
|
|
|
%description devel -l ja
|
|
|
このパッケージには、pilot-link パッケージを構築する為に必要な開発用の
|
|
|
-ヘッダ ファイルが含まれます。また、スタティックな Palm 用アプリケーション
|
|
|
-の構築に必要なスタティック ライブラリも含まれます。
|
|
|
+ヘッダファイルが含まれます。
|
|
|
|
|
|
Palm handheld deviceと同期するアプリケーションを開発したい場合は、
|
|
|
pilot-link-devel パッケージをインストールする必要があります。
|
|
|
|
|
|
%prep
|
|
|
%setup -q -a 1
|
|
|
-%if %{support_perl}
|
|
|
-%patch1 -p1 -b .perlmd5
|
|
|
-%patch2 -p1 -b .perlpollute
|
|
|
-%patch3 -p1 -b .malsync
|
|
|
-%endif
|
|
|
+%patch0 -p1 -b .var
|
|
|
+%patch1 -p1 -b .open
|
|
|
+%patch2 -p1 -b .clio
|
|
|
+%patch3 -p1 -b .mp
|
|
|
+%patch4 -p1 -b .symbol
|
|
|
+%patch5 -p1 -b .compiler
|
|
|
+
|
|
|
+iconv -f windows-1252 -t UTF8 doc/README.usb > doc/README.usb.aux
|
|
|
+mv doc/README.usb.aux doc/README.usb
|
|
|
+iconv -f windows-1252 -t UTF8 ChangeLog > ChangeLog.aux
|
|
|
+mv ChangeLog.aux ChangeLog
|
|
|
+iconv -f windows-1252 -t UTF8 NEWS > NEWS.aux
|
|
|
+mv NEWS.aux NEWS
|
|
|
|
|
|
%build
|
|
|
-%configure\
|
|
|
- --disable-static \
|
|
|
- --enable-conduits \
|
|
|
- --enable-libusb \
|
|
|
- --with-libpng \
|
|
|
- --with-bluez \
|
|
|
- --without-python \
|
|
|
- --without-tcl \
|
|
|
- --without-java \
|
|
|
+%configure \
|
|
|
+ --disable-static \
|
|
|
+ --enable-conduits \
|
|
|
+ --enable-libusb \
|
|
|
+ --with-libpng \
|
|
|
+ --with-bluez \
|
|
|
+ --without-python \
|
|
|
+ --without-tcl \
|
|
|
+ --without-java \
|
|
|
%if %{support_perl}
|
|
|
- --with-perl
|
|
|
+ --with-perl
|
|
|
%else
|
|
|
- --without-perl
|
|
|
+ --without-perl
|
|
|
%endif
|
|
|
|
|
|
-make
|
|
|
+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
|
|
|
+
|
|
|
+make %{?_smp_mflags}
|
|
|
|
|
|
%install
|
|
|
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
+make install DESTDIR=$RPM_BUILD_ROOT libdir=%{_libdir}
|
|
|
+make install -C doc/man DESTDIR=$RPM_BUILD_ROOT libdir=%{_libdir}
|
|
|
+
|
|
|
%if %{support_perl}
|
|
|
if test -f bindings/Perl/Makefile.PL ; then
|
|
|
cd bindings/Perl
|
|
@@ -129,22 +147,30 @@ if test -f bindings/Perl/Makefile.PL ; then
|
|
|
fi
|
|
|
%endif
|
|
|
|
|
|
-%__make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
-#%makeinstall -C doc/man
|
|
|
|
|
|
%if %{support_perl}
|
|
|
make install -C bindings/Perl
|
|
|
-rm -f %{buildroot}%{_libdir}/perl5/vendor_perl/%{perl_version}/*/auto/PDA/Pilot/Pilot.bs \
|
|
|
- %{buildroot}%{_libdir}/perl5/site_perl/*/*/*/PDA/Pilot/.packlist
|
|
|
+rm -f $RPM_BUILD_ROOT%{_libdir}/perl5/vendor_perl/%{perl_version}/*/auto/PDA/Pilot/Pilot.bs \
|
|
|
+ $RPM_BUILD_ROOT%{_libdir}/perl5/site_perl/*/*/*/PDA/Pilot/.packlist
|
|
|
%endif
|
|
|
|
|
|
# install modified udev rules.
|
|
|
-mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d
|
|
|
-install -m644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d/60-libpisock.rules
|
|
|
+#mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d
|
|
|
+#install -m644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d/60-libpisock.rules
|
|
|
|
|
|
# remove files we don't want to include
|
|
|
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
|
|
|
|
|
|
+# remove broken prog
|
|
|
+rm -f $RPM_BUILD_ROOT%{_bindir}/pilot-prc
|
|
|
+
|
|
|
+# install visor configs to share/udev
|
|
|
+install -p -m644 %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/pilot-link/udev
|
|
|
+
|
|
|
+# now that rules are moved out HAL, install to /lib/udev/
|
|
|
+install -d $RPM_BUILD_ROOT/lib/udev/rules.d/
|
|
|
+install -p -m644 %{SOURCE2} $RPM_BUILD_ROOT/lib/udev/rules.d/60-libpisock.rules
|
|
|
+
|
|
|
%post libs -p /sbin/ldconfig
|
|
|
|
|
|
%postun libs -p /sbin/ldconfig
|
|
@@ -162,7 +188,8 @@ rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
|
|
|
%files libs
|
|
|
%defattr(-,root,root)
|
|
|
%doc COPYING.LIB
|
|
|
-%{_sysconfdir}/udev/rules.d/60-libpisock.rules
|
|
|
+/lib/udev/rules.d/60-libpisock.rules
|
|
|
+#{_sysconfdir}/udev/rules.d/60-libpisock.rules
|
|
|
%{_libdir}/*.so.*
|
|
|
%if %{support_perl}
|
|
|
%{_libdir}/perl5/vendor_perl/*/*/*/PDA
|
|
@@ -181,6 +208,13 @@ rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
+* Tue Dec 16 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.12.5-3
|
|
|
+- added Patch1, 2, 3, 4 and 5 from Fedora
|
|
|
+- added Source3 from Fedora
|
|
|
+- built with libpng 1.6.12
|
|
|
+- updated devel description
|
|
|
+- moved main package to Applications/Communications Group
|
|
|
+
|
|
|
* Sat Sep 13 2014 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.12.5-2
|
|
|
- rebuilt with current environment
|
|
|
|