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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1647143 - (show annotations) (download)
Wed Nov 18 18:17:26 2020 UTC (3 years, 7 months ago) by luigiwalser
File size: 4722 byte(s)
0.7.16
1 %define shortname solv
2 %define major 1
3 %define libname %mklibname %{shortname} %{major}
4 %define devname %mklibname -d %{shortname}
5
6
7 Name: libsolv
8 Version: 0.7.16
9 Release: %mkrel 1
10 License: BSD
11 Url: https://github.com/openSUSE/libsolv
12 Source0: https://github.com/openSUSE/libsolv/archive/%{version}/%{name}-%{version}.tar.gz
13
14 # Backports from upstream
15
16 Group: System/Libraries
17 Summary: Package dependency solver
18 BuildRequires: cmake
19 BuildRequires: libxml2-devel
20 BuildRequires: zchunk-devel
21 BuildRequires: rpm-devel
22 BuildRequires: zlib-devel
23 BuildRequires: bzip2-devel
24 BuildRequires: zstd-devel
25 BuildRequires: swig
26 BuildRequires: perl
27 BuildRequires: perl-devel
28 BuildRequires: ruby
29 BuildRequires: ruby-devel
30 BuildRequires: python3-devel
31 # (tv) fix build:
32 BuildRequires: ruby-psych
33 # For doc:
34 BuildRequires: asciidoc
35
36 %description
37 A free package dependency solver using a satisfiability algorithm. The
38 library is based on two major, but independent, blocks:
39
40 - Using a dictionary approach to store and retrieve package
41 and dependency information.
42
43 - Using satisfiability, a well known and researched topic, for
44 resolving package dependencies.
45
46 %package -n %{libname}
47 Summary: Libraries for %{name}
48 Group: System/Libraries
49
50 %description -n %{libname}
51 Libraries for %{name}
52
53 %package -n %{devname}
54 Summary: Development files for %{name}
55 Group: Development/C
56 Provides: %{name}-devel = %{version}-%{release}
57 Requires: %{libname} = %{version}-%{release}
58 Requires: cmake
59
60 %description -n %{devname}
61 Development files for %{name}
62
63 %package doc
64 Summary: Documentation for %{name}
65 Group: Documentation
66
67 %description doc
68 Documentation for %{name}
69
70 %package tools
71 Summary: A new approach to package dependency solving
72 Group: System/Packaging
73 Requires: gzip
74 Requires: bzip2
75 Requires: zchunk
76 Requires: zstd
77
78 %description tools
79 Package dependency solver tools.
80
81 %package demo
82 Summary: Application demoing the libsolv library
83 Group: System/Packaging
84 Requires: %{libname} = %{version}-%{release}
85 Requires: %{name}-tools = %{version}-%{release}
86 Requires: curl
87 Requires: gnupg2
88
89 %description demo
90 Applications demoing the libsolv library.
91
92 %package -n ruby-solv
93 Summary: Ruby bindings for the libsolv library
94 Group: Development/Ruby
95
96 %description -n ruby-solv
97 Ruby bindings for libsolv.
98
99 %package -n python3-solv
100 Summary: Python bindings for the libsolv library
101 Group: Development/Python
102 %{?python_provide: %python_provide python3-solv}
103
104 %description -n python3-solv
105 Python bindings for libsolv.
106
107 %package -n perl-solv
108 Summary: Perl bindings for the libsolv library
109 Group: Development/Perl
110
111 %description -n perl-solv
112 Perl bindings for libsolv.
113
114 %prep
115 %autosetup -p1
116
117 %build
118 %cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \
119 -DWITH_LIBXML2=1 \
120 -DWITH_SYSTEM_ZCHUNK=1 \
121 -DENABLE_PERL=1 \
122 -DENABLE_PYTHON=1 \
123 -DENABLE_RUBY=1 \
124 -DUSE_VENDORDIRS=1 \
125 -DENABLE_APPDATA=1 \
126 -DENABLE_COMPS=1 -DMAGEIA=1 \
127 -DENABLE_RPMDB_BYRPMHEADER=1 \
128 -DENABLE_RPMDB_LIBRPM=1 \
129 -DENABLE_RPMPKG_LIBRPM=1 \
130 -DENABLE_LZMA_COMPRESSION=1 \
131 -DENABLE_BZIP2_COMPRESSION=1 \
132 -DENABLE_ZSTD_COMPRESSION=1 \
133 -DENABLE_SUSEREPO=1 \
134 -DENABLE_HELIXREPO=1 \
135 -DENABLE_DEBIAN=1 \
136 -DENABLE_ARCHREPO=1 \
137 -DENABLE_COMPLEX_DEPS=1 \
138 -DMULTI_SEMANTICS=1
139
140 %cmake_build
141
142 pushd %{_vpath_builddir}/doc
143 cp -a ../../doc/*.txt .
144 cp -a ../../doc/gen gen
145 cp ../../doc/Makefile.gen .
146 make -f Makefile.gen html
147 popd
148
149
150 %install
151 %cmake_install
152
153
154 %files -n %{libname}
155 %license LICENSE*
156 %doc README
157 %{_libdir}/libsolv.so.%{major}
158 %{_libdir}/libsolvext.so.%{major}
159
160 %files doc
161 %doc build/doc/gen/*.html
162
163 %files tools
164 %{_bindir}/installcheck
165 %{_bindir}/a*solv
166 %{_bindir}/comps2solv
167 %{_bindir}/d*solv
168 %{_bindir}/helix2solv
169 %{_bindir}/m*solv
170 %{_bindir}/repo*2solv
171 %{_bindir}/rpm*solv
172 %{_bindir}/susetags2solv
173 %{_bindir}/testsolv
174 %{_bindir}/updateinfoxml2solv
175 %{_mandir}/man1/installcheck.1*
176 %{_mandir}/man1/a*solv.1*
177 %{_mandir}/man1/comps2solv.1*
178 %{_mandir}/man1/d*solv.1*
179 %{_mandir}/man1/helix2solv.1*
180 %{_mandir}/man1/m*solv.1*
181 %{_mandir}/man1/repo*2solv.1*
182 %{_mandir}/man1/rpm*solv.1*
183 %{_mandir}/man1/susetags2solv.1*
184 %{_mandir}/man1/testsolv.1*
185 %{_mandir}/man1/updateinfoxml2solv.1*
186
187 %files -n %{devname}
188 %doc examples/solv
189 %{_libdir}/libsolv*.so
190 %{_includedir}/solv
191 %{_datadir}/cmake/Modules/FindLibSolv.cmake
192 %{_mandir}/man3/*
193 %{_libdir}/pkgconfig/libsolv*.pc
194
195 %files demo
196 %{_bindir}/solv
197 %{_mandir}/man1/solv.1*
198
199 %files -n perl-solv
200 %doc examples/p5solv
201 %{perl_vendorarch}/*
202
203 %files -n ruby-solv
204 %doc examples/rbsolv
205 %{ruby_vendorarchdir}/*
206
207 %files -n python3-solv
208 %doc examples/pysolv
209 %{python3_sitearch}/*

  ViewVC Help
Powered by ViewVC 1.1.30