/[packages]/cauldron/createrepo_c/current/SPECS/createrepo_c.spec
ViewVC logotype

Contents of /cauldron/createrepo_c/current/SPECS/createrepo_c.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 893842 - (show annotations) (download)
Wed Oct 21 16:05:33 2015 UTC (8 years, 5 months ago) by ngompa
File size: 3246 byte(s)
Fix Group and Provides for devel subpackage
1 %define major 0
2 %define libname %mklibname %name %major
3 %define libname_devel %mklibname -d %name
4
5 Name: createrepo_c
6 Summary: Creates a common metadata repository
7 Group: System/Packaging
8 Version: 0.9.1
9 Release: %mkrel 2
10 License: GPLv2
11 URL: https://github.com/rpm-software-management/createrepo_c
12 Source0: https://github.com/rpm-software-management/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
13
14 BuildRequires: bzip2-devel
15 BuildRequires: cmake
16 BuildRequires: doxygen
17 BuildRequires: expat-devel
18 BuildRequires: file-devel
19 BuildRequires: glib2-devel >= 2.22.0
20 BuildRequires: libcurl-devel
21 BuildRequires: libxml2-devel
22 BuildRequires: openssl-devel
23 BuildRequires: python2-devel
24 BuildRequires: python-nose
25 BuildRequires: python-sphinx
26 BuildRequires: rpm-devel >= 4.9.0
27 BuildRequires: sqlite3-devel
28 BuildRequires: lzma-devel
29 BuildRequires: zlib-devel
30 BuildRequires: bash-completion
31 BuildRequires: drpm-devel >= 0.1.3
32
33 Requires: %{libname} = %{version}-%{release}
34
35 # prevent provides from nonstandard paths:
36 %define _exclude_files_from_autoprov %{python2_sitearch}/.*\\.so\\|%{python3_sitearch}/.*\\.so
37
38 %description
39 C implementation of Createrepo.
40 A set of utilities (createrepo_c, mergerepo_c, modifyrepo_c)
41 for generating a common metadata repository from a directory of
42 rpm packages and maintaining it.
43
44 %package -n %{libname}
45 Summary: Library for repodata manipulation
46 Group: System/Libraries
47 # The function to create DeltaRPMs calls /usr/bin/makedeltarpm,
48 # which is part of the 'deltarpm' package
49 Requires: deltarpm
50
51 %description -n %{libname}
52 Libraries for applications using the createrepo_c library
53 for easy manipulation with a repodata.
54
55 %package -n %{libname_devel}
56 Summary: Library for repodata manipulation
57 Group: Development/C
58 Provides: %{name}-devel = %{version}-%{release}
59 Requires: pkgconfig
60 Requires: %{libname} = %{version}-%{release}
61
62 %description -n %{libname_devel}
63 This package contains the createrepo_c C library and header files.
64 These development files are for easy manipulation with a repodata.
65
66 %package -n python2-%{name}
67 Summary: Python 2 bindings for the createrepo_c library
68 Group: Development/Python
69 Provides: python-%{name} = %{version}-%{release}
70 Requires: %{libname} = %{version}-%{release}
71
72 %description -n python2-createrepo_c
73 Python bindings for the createrepo_c library.
74
75 %prep
76 %setup -q
77
78 %build
79 %cmake
80 %make_build
81 make doc-c
82
83 %check
84 pushd ./build
85 make tests
86 make ARGS="-V" test
87 popd
88
89 %install
90 pushd ./build
91 %make_install
92 popd
93
94 %files
95 %doc README.md
96 %license COPYING
97 %_mandir/man8/createrepo_c.8.*
98 %_mandir/man8/mergerepo_c.8.*
99 %_mandir/man8/modifyrepo_c.8.*
100 %_mandir/man8/sqliterepo_c.8.*
101 %{_datadir}/bash-completion/completions/
102 %{_bindir}/createrepo_c
103 %{_bindir}/mergerepo_c
104 %{_bindir}/modifyrepo_c
105 %{_bindir}/sqliterepo_c
106
107 %files -n %{libname}
108 %license COPYING
109 %{_libdir}/libcreaterepo_c.so.%{major}
110 %{_libdir}/libcreaterepo_c.so.%{major}.*
111
112 %files -n %{libname_devel}
113 %{_libdir}/libcreaterepo_c.so
114 %{_libdir}/pkgconfig/createrepo_c.pc
115 %{_includedir}/createrepo_c/
116 %license COPYING
117 %doc build/doc/html
118
119 %files -n python2-createrepo_c
120 %{python2_sitearch}/createrepo_c/
121

  ViewVC Help
Powered by ViewVC 1.1.30