summaryrefslogtreecommitdiff
path: root/synce-rra.spec
blob: c90e638e7cfeba04a9fdef57f12791c0ffcb34fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
Summary:	Remote Replication Agent Connection protocol library
Summary(pl.UTF-8):	RRA - aplikacja SynCE do synchronizacji
Name:		synce-rra
Version:	0.17
Release:	3
License:	MIT
Group:		Libraries
Source0:	http://downloads.sourceforge.net/synce/librra-%{version}.tar.gz
# Source0-md5:	d0c869afbce4d203c85098a2886b6956
Patch0:		%{name}-libmimedir.patch
URL:		http://www.synce.org/
BuildRequires:	autoconf >= 2.53
BuildRequires:	automake >= 1.4
BuildRequires:	libmimedir-vlm-devel
BuildRequires:	libtool
BuildRequires:	pkgconfig
BuildRequires:	python-Pyrex >= 0.9.6
BuildRequires:	python-devel >= 1:2.3
BuildRequires:	rpmbuild(macros) >= 1.559
BuildRequires:	synce-core-lib-devel >= 0.17
Requires:	synce-core-lib >= 0.17
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
SynCE is a project for connecting to devices running Windows CE or
Pocket PC.

RRA implements the Remote Replication Agent Connection protocol for
synchronising objects between a Windows CE device and other computer.

%description -l pl.UTF-8
SynCE to projekt mający na celu łączenie z urządzeniami działającymi
pod kontrolą systemu Windows CE lub Pocket PC.

RRA to implementacja protokołu Remote Replication Agent Connection do
synchronizacji obiektów między urządzeniem Windows CE a innym
komputerem.

%package devel
Summary:	Header files for RRA library
Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki RRA
Group:		Development/Libraries
Requires:	%{name} = %{version}-%{release}
Requires:	libmimedir-vlm-devel
Requires:	synce-core-lib-devel >= 0.17

%description devel
Header files for RRA library.

%description devel -l pl.UTF-8
Pliki nagłówkowe biblioteki RRA.

%package static
Summary:	Static RRA library
Summary(pl.UTF-8):	Statyczna biblioteka RRA
Group:		Development/Libraries
Requires:	%{name}-devel = %{version}-%{release}

%description static
Static RRA library.

%description static -l pl.UTF-8
Statyczna biblioteka RRA.

%package -n python-pyrra
Summary:	Python binding for RRA library
Summary(pl.UTF-8):	Wiązanie Pythona do biblioteki RRA
Group:		Libraries/Python
Requires:	%{name} = %{version}-%{release}

%description -n python-pyrra
Python binding for RRA library.

%description -n python-pyrra -l pl.UTF-8
Wiązanie Pythona do biblioteki RRA.

%prep
%setup -q -n librra-%{version}
%patch0 -p1

%build
%{__libtoolize}
%{__aclocal} -I m4
%{__autoconf}
%{__autoheader}
%{__automake}
%configure

%{__make}

%install
rm -rf $RPM_BUILD_ROOT

%{__make} install \
	DESTDIR=$RPM_BUILD_ROOT

%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/pyrra.{la,a}

%clean
rm -rf $RPM_BUILD_ROOT

%post	-p /sbin/ldconfig
%postun	-p /sbin/ldconfig

%files
%defattr(644,root,root,755)
%doc ChangeLog LICENSE README TODO
%attr(755,root,root) %{_bindir}/synce-matchmaker
%attr(755,root,root) %{_bindir}/rra-appointment-from-vevent
%attr(755,root,root) %{_bindir}/rra-appointment-to-vevent
%attr(755,root,root) %{_bindir}/rra-contact-from-vcard
%attr(755,root,root) %{_bindir}/rra-contact-to-vcard
%attr(755,root,root) %{_bindir}/rra-decode
%attr(755,root,root) %{_bindir}/rra-delete
%attr(755,root,root) %{_bindir}/rra-file-pack
%attr(755,root,root) %{_bindir}/rra-file-unpack
%attr(755,root,root) %{_bindir}/rra-get-data
%attr(755,root,root) %{_bindir}/rra-get-ids
%attr(755,root,root) %{_bindir}/rra-get-recurring-appointments
%attr(755,root,root) %{_bindir}/rra-get-types
%attr(755,root,root) %{_bindir}/rra-put-data
%attr(755,root,root) %{_bindir}/rra-subscribe
%attr(755,root,root) %{_bindir}/rra-task-from-vtodo
%attr(755,root,root) %{_bindir}/rra-task-to-vtodo
%attr(755,root,root) %{_bindir}/rra-timezone
%attr(755,root,root) %{_libdir}/librra.so.*.*.*
%attr(755,root,root) %ghost %{_libdir}/librra.so.0
%{_mandir}/man1/rra-appointment-from-vevent.1*
%{_mandir}/man1/rra-appointment-to-vevent.1*
%{_mandir}/man1/rra-contact-from-vcard.1*
%{_mandir}/man1/rra-contact-to-vcard.1*
%{_mandir}/man1/rra-decode.1*
%{_mandir}/man1/rra-delete.1*
%{_mandir}/man1/rra-file-pack.1*
%{_mandir}/man1/rra-file-unpack.1*
%{_mandir}/man1/rra-get-data.1*
%{_mandir}/man1/rra-get-ids.1*
%{_mandir}/man1/rra-get-recurring-appointments.1*
%{_mandir}/man1/rra-get-types.1*
%{_mandir}/man1/rra-put-data.1*
%{_mandir}/man1/rra-subscribe.1*
%{_mandir}/man1/rra-task-from-vtodo.1*
%{_mandir}/man1/rra-task-to-vtodo.1*
%{_mandir}/man1/rra-timezone.1*
%{_mandir}/man1/synce-matchmaker.1*

%files devel
%defattr(644,root,root,755)
%doc lib/README
%attr(755,root,root) %{_libdir}/librra.so
%{_libdir}/librra.la
%{_includedir}/rra
%{_pkgconfigdir}/librra.pc

%files static
%defattr(644,root,root,755)
%{_libdir}/librra.a

%files -n python-pyrra
%defattr(644,root,root,755)
%attr(755,root,root) %{py_sitedir}/pyrra.so