]> git.pld-linux.org Git - packages/libcmis.git/blame - libcmis.spec
- pc file is back
[packages/libcmis.git] / libcmis.spec
CommitLineData
a25e2f47
JB
1#
2# Conditonal build:
3%bcond_without static_libs # static library
4#
0b0b294e 5Summary: A C++ client library for the CMIS interface
e4746041 6Summary(pl.UTF-8): Biblioteka klienta C++ dla inferfejsu CMIS
0b0b294e 7Name: libcmis
905f2b6f
AM
8Version: 0.2.3
9Release: 1
a25e2f47 10License: GPL v2+ or LGPL v2+ or MPL v1.1
0b0b294e 11Group: Libraries
0b0b294e 12Source0: http://downloads.sourceforge.net/libcmis/%{name}-%{version}.tar.gz
905f2b6f 13# Source0-md5: 0d2dcdfbf28d6208751b33057f5361f0
a25e2f47 14URL: http://sourceforge.net/projects/libcmis/
0b0b294e
AM
15BuildRequires: boost-devel
16BuildRequires: curl-devel
905f2b6f 17BuildRequires: docbook2X
a25e2f47 18BuildRequires: libstdc++-devel
0b0b294e 19BuildRequires: libxml2-devel
102a9631 20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
0b0b294e
AM
21
22%description
23LibCMIS is a C++ client library for the CMIS interface. This allows
24C++ applications to connect to any ECM behaving as a CMIS server like
25Alfresco, Nuxeo for the open source ones.
26
e4746041 27%description -l pl.UTF-8
a25e2f47
JB
28LibCMIS to biblioteka klienta C++ dla interfejsu CMIS. Pozwala ona
29aplikacjom C++ na łączenie się z każdym ECM zachowującym się jako
30serwer CMIS, taki jak Alfresco, Nuxeo (biorąc pod uwagę implementacje
31o otwartych źródłach).
e4746041 32
0b0b294e 33%package devel
a25e2f47
JB
34Summary: Development files for CMIS library
35Summary(pl.UTF-8): Pliki nagłówkowe biblioteki CMIS
0b0b294e
AM
36Group: Development/Libraries
37Requires: %{name} = %{version}-%{release}
a25e2f47
JB
38Requires: boost-devel
39Requires: libstdc++-devel
0b0b294e
AM
40
41%description devel
a25e2f47
JB
42This package contains the header files for developing applications
43that use CMIS library.
0b0b294e 44
e4746041 45%description devel -l pl.UTF-8
a25e2f47
JB
46Ten pakiet zawiera pliki nagłówkowe do tworzenia aplikacji opartych na
47bibliotece CMIS
48
49%package static
50Summary: Static CMIS library
51Summary(pl.UTF-8): Statyczna biblioteka CMIS
52Group: Development/Libraries
53Requires: %{name}-devel = %{version}-%{release}
54
55%description static
56Static CMIS library.
57
58%description static -l pl.UTF-8
59Statyczna biblioteka CMIS.
e4746041 60
0b0b294e
AM
61%package tools
62Summary: Command line tool to access CMIS
e4746041 63Summary(pl.UTF-8): Narzędzie wiersza poleceń dla CMIS
0b0b294e
AM
64Group: Applications/Publishing
65Requires: %{name} = %{version}-%{release}
66
67%description tools
a25e2f47 68This package contains a tool for accessing CMIS from the command line.
0b0b294e 69
e4746041 70%description tools -l pl.UTF-8
a25e2f47
JB
71Ten pakiet zawiera narzędzie do łączenia się do CMIS z wiersza
72poleceń.
e4746041 73
0b0b294e
AM
74%prep
75%setup -q
905f2b6f 76sed -i -e 's/docbook-to-man/docbook2X2man/' configure
0b0b294e
AM
77
78%build
79%configure \
a25e2f47 80 %{!?with_static_libs:--disable-static} \
0b0b294e
AM
81 --disable-tests \
82 --disable-werror
83
84%{__make}
85
86%install
87rm -rf $RPM_BUILD_ROOT
88
4ffb7ff6
AM
89install -d $RPM_BUILD_ROOT%{_pkgconfigdir}
90
0b0b294e
AM
91%{__make} install \
92 DESTDIR=$RPM_BUILD_ROOT
93
4ffb7ff6
AM
94cp -p %{name}-0.2.pc %{buildroot}/%{_libdir}/pkgconfig
95
a25e2f47 96# obsoleted by pkg-config
102a9631 97%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
0b0b294e
AM
98
99%clean
100rm -rf $RPM_BUILD_ROOT
101
102a9631
ER
102%post -p /sbin/ldconfig
103%postun -p /sbin/ldconfig
0b0b294e
AM
104
105%files
106%defattr(644,root,root,755)
a25e2f47 107%doc AUTHORS ChangeLog README
102a9631 108%attr(755,root,root) %{_libdir}/%{name}-0.2.so.*.*.*
905f2b6f 109%attr(755,root,root) %ghost %{_libdir}/libcmis-0.2.so.2
0b0b294e
AM
110
111%files devel
112%defattr(644,root,root,755)
0b0b294e 113%attr(755,root,root) %{_libdir}/%{name}-0.2.so
905f2b6f 114%{_includedir}/%{name}-0.2
4ffb7ff6 115%{_pkgconfigdir}/libcmis-0.2.pc
0b0b294e 116
a25e2f47
JB
117%if %{with static_libs}
118%files static
119%defattr(644,root,root,755)
120%{_libdir}/libcmis-0.2.a
121%endif
122
0b0b294e
AM
123%files tools
124%defattr(644,root,root,755)
125%attr(755,root,root) %{_bindir}/cmis-client
905f2b6f 126%{_mandir}/man1/cmis-client.1*
This page took 0.082968 seconds and 4 git commands to generate.