- new
[packages/AppStream.git] / AppStream.spec
CommitLineData
93b0aff6
JB
1#
2# Conditional build:
3%bcond_without apidocs # API documentation build
4%bcond_without vala # Vala API (VAPI)
5#
6Summary: AppStream-Core library and tools
7Summary(pl.UTF-8): Biblioteka i narzędzia AppStream-Core
8Name: AppStream
9Version: 0.6.2
10Release: 1
11License: LGPL v3
12Group: Libraries
13Source0: http://www.freedesktop.org/software/appstream/releases/%{name}-%{version}.tar.gz
14# Source0-md5: c5df357df76156f7a6d4dd9a27b50b66
15URL: http://www.freedesktop.org/wiki/Distributions/AppStream/Software/
16BuildRequires: PackageKit-devel
17BuildRequires: cmake >= 2.8.6
18BuildRequires: gettext-devel
19BuildRequires: glib2-devel >= 1:2.36
20BuildRequires: gobject-introspection-devel
21BuildRequires: intltool
22BuildRequires: libstdc++-devel
23BuildRequires: libxml2-devel >= 2.0
24BuildRequires: pkgconfig
25%{?with_vala:BuildRequires: vala}
26BuildRequires: xapian-core-devel >= 1.2
27%if %{with apidocs}
28BuildRequires: gtk-doc
29BuildRequires: publican
30BuildRequires: xmlto
31%endif
32Requires: glib2 >= 1:2.36
33Requires: xapian-core-libs >= 1.2
34BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35
36%description
37AppStream-Core library and tools to access the AppStream component
38database.
39
40%description -l pl.UTF-8
41Biblioteka i narzędzia AppStream-Core służące do dostępu do bazy
42danych komponentu AppStream.
43
44%package devel
45Summary: Header files for AppStream library
46Summary(pl.UTF-8): Pliki nagłówkowe biblioteki AppStream
47Group: Development/Libraries
48Requires: %{name} = %{version}-%{release}
49Requires: glib2-devel >= 1:2.36
50
51%description devel
52Header files for AppStream library.
53
54%description devel -l pl.UTF-8
55Pliki nagłówkowe biblioteki AppStream.
56
57%package apidocs
58Summary: AppStream API documentation
59Summary(pl.UTF-8): Dokumentacja API biblioteki AppStream
60Group: Documentation
61
62%description apidocs
63API documentation for AppStream library.
64
65%description apidocs -l pl.UTF-8
66Dokumentacja API biblioteki AppStream.
67
68%package -n vala-appstream
69Summary: Vala API for AppStream library
70Summary(pl.UTF-8): API języka Vala do biblioteki AppStream
71Group: Development/Libraries
72Requires: %{name}-devel = %{version}-%{release}
73Requires: vala
74
75%description -n vala-appstream
76Vala API for AppStream library.
77
78%description -n vala-appstream -l pl.UTF-8
79API języka Vala do biblioteki AppStream.
80
81%package -n PackageKit-plugin-appstream
82Summary: AppStream plugin for PackageKit
83Summary(pl.UTF-8): Wtyczka AppStream dla PackageKita
84Group: Libraries
85Requires: %{name} = %{version}-%{release}
86Requires: PackageKit
87
88%description -n PackageKit-plugin-appstream
89AppStream plugin for PackageKit. It refreshes the AppStream database
90of available applications.
91
92%description -n PackageKit-plugin-appstream -l pl.UTF-8
93Wtyczka AppStream dla PackageKita. Odświeża bazę danych AppStream
94dostępnych aplikacji.
95
96%prep
97%setup -q
98
99%build
100install -d build
101cd build
102%cmake .. \
103 %{?with_apidocs:-DDOCUMENTATION=ON} \
104 %{?with_vala:-DVAPI=ON}
105
106%{__make}
107
108%install
109rm -rf $RPM_BUILD_ROOT
110
111%{__make} -C build install \
112 DESTDIR=$RPM_BUILD_ROOT
113
114%clean
115rm -rf $RPM_BUILD_ROOT
116
117%post -p /sbin/ldconfig
118%postun -p /sbin/ldconfig
119
120%files
121%defattr(644,root,root,755)
122%doc AUTHORS MAINTAINERS NEWS README RELEASE
123%attr(755,root,root) %{_bindir}/appstream-index
124%attr(755,root,root) %{_bindir}/appstream-validate
125%attr(755,root,root) %{_libdir}/libappstream.so.*.*.*
126%attr(755,root,root) %ghost %{_libdir}/libappstream.so.0
127%{_libdir}/girepository-1.0/Appstream-0.6.typelib
128%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/appstream.conf
129%dir %{_datadir}/app-info
130%{_datadir}/app-info/categories.xml
131%{_mandir}/man1/appstream-index.1*
132%{_mandir}/man1/appstream-validate.1*
133
134%files devel
135%defattr(644,root,root,755)
136%attr(755,root,root) %{_libdir}/libappstream.so
137%{_datadir}/gir-1.0/Appstream-0.6.gir
138%{_includedir}/Appstream
139%{_pkgconfigdir}/appstream.pc
140
141%if %{with apidocs}
142%files apidocs
143%defattr(644,root,root,755)
144%doc docs/html/*
145%endif
146
147%if %{with vala}
148%files -n vala-appstream
149%defattr(644,root,root,755)
150%{_datadir}/vala/vapi/appstream.vapi
151%endif
152
153%files -n PackageKit-plugin-appstream
154%defattr(644,root,root,755)
155%attr(755,root,root) %{_libdir}/packagekit-plugins/libpk_plugin_appstream.so
This page took 0.16087 seconds and 4 git commands to generate.