]>
Commit | Line | Data |
---|---|---|
0b717f3c ER |
1 | %define _rc pre |
2 | %define _rel 0.1 | |
3 | Summary: Synchronization mediator for AvantGo and Pocket PC | |
4 | Name: agsync | |
5 | Version: 0.2 | |
6 | Release: 0.%{_rc}.%{_rel} | |
7 | License: MPL v1.1 | |
8 | Group: Applications | |
9 | URL: http://duskwood.lownewulf.com/avantgo.html | |
a94c1e6f | 10 | Source0: http://duskwood.lownewulf.com/%{name}-%{version}-%{_rc}.tgz |
830b92a4 | 11 | Patch0: %{name}-debian.patch |
a94c1e6f | 12 | # Source0-md5: 74de1b1452a718c85364fab5ce3c0c2a |
369d2e28 | 13 | BUildRequires: synce-librapi2-devel |
369d2e28 | 14 | BUildRequires: synce-libsynce-devel |
0b717f3c ER |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
16 | ||
17 | %description | |
18 | This package contains the AvantGo - Pocket PC synchronization mediator | |
19 | command line application. | |
20 | ||
369d2e28 ER |
21 | %package devel |
22 | Summary: Development files for AvantGo and Pocket PC synchronization | |
23 | Group: Development/Libraries | |
24 | Requires: %{name} = %{version}-%{release} | |
25 | ||
26 | %description devel | |
27 | This package contains the library to develop applications which | |
28 | provides AvantGo synchronization fro Pocket PC to be mediated by the | |
29 | connected PC | |
30 | ||
31 | %package static | |
32 | Summary: Static AvantGo library | |
33 | Group: Development/Libraries | |
34 | Requires: %{name}-devel = %{version}-%{release} | |
35 | ||
36 | %description static | |
37 | Static AvantGo library library. | |
38 | ||
0b717f3c | 39 | %prep |
a94c1e6f | 40 | %setup -q -n %{name}-%{version}-%{_rc} |
369d2e28 ER |
41 | %patch0 -p1 |
42 | chmod +x configure | |
0b717f3c ER |
43 | |
44 | %build | |
369d2e28 | 45 | %configure |
0b717f3c ER |
46 | %{__make} |
47 | ||
48 | %install | |
49 | rm -rf $RPM_BUILD_ROOT | |
369d2e28 ER |
50 | install -d $RPM_BUILD_ROOT%{_mandir}/man1 |
51 | %{__make} install \ | |
52 | DESTDIR=$RPM_BUILD_ROOT | |
53 | cp -a agsync.1 $RPM_BUILD_ROOT%{_mandir}/man1 | |
0b717f3c ER |
54 | |
55 | %clean | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
369d2e28 ER |
58 | %post -p /sbin/ldconfig |
59 | %postun -p /sbin/ldconfig | |
60 | ||
0b717f3c ER |
61 | %files |
62 | %defattr(644,root,root,755) | |
63 | %doc README | |
369d2e28 ER |
64 | %attr(755,root,root) %{_bindir}/agsync |
65 | %{_mandir}/man1/agsync.1* | |
66 | %attr(755,root,root) %{_libdir}/libmal-funcs.so.*.*.* | |
67 | ||
68 | %files devel | |
69 | %defattr(644,root,root,755) | |
70 | %{_libdir}/libmal-funcs.la | |
71 | %{_libdir}/libmal-funcs.so | |
72 | %{_includedir}/AG*.h | |
73 | %{_includedir}/md5.h | |
74 | ||
75 | %files static | |
76 | %defattr(644,root,root,755) | |
77 | %{_libdir}/libmal-funcs.a |