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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1647143 - (hide annotations) (download)
Wed Nov 18 18:17:26 2020 UTC (3 years, 8 months ago) by luigiwalser
File size: 4722 byte(s)
0.7.16
1 colin 266012 %define shortname solv
2 ngompa 1326320 %define major 1
3 luigiwalser 1647143 %define libname %mklibname %{shortname} %{major}
4     %define devname %mklibname -d %{shortname}
5 colin 266012
6    
7     Name: libsolv
8 luigiwalser 1647143 Version: 0.7.16
9     Release: %mkrel 1
10 colin 266012 License: BSD
11     Url: https://github.com/openSUSE/libsolv
12 luigiwalser 1647143 Source0: https://github.com/openSUSE/libsolv/archive/%{version}/%{name}-%{version}.tar.gz
13 ngompa 1014869
14 ngompa 1549623 # Backports from upstream
15    
16 colin 266165 Group: System/Libraries
17 colin 266012 Summary: Package dependency solver
18 wally 1205508 BuildRequires: cmake
19     BuildRequires: libxml2-devel
20 ngompa 1326320 BuildRequires: zchunk-devel
21 wally 1205508 BuildRequires: rpm-devel
22 ngompa 1151898 BuildRequires: zlib-devel
23 ngompa 1000183 BuildRequires: bzip2-devel
24 ngompa 1250809 BuildRequires: zstd-devel
25 colin 266012 BuildRequires: swig
26 wally 1205508 BuildRequires: perl
27     BuildRequires: perl-devel
28     BuildRequires: ruby
29     BuildRequires: ruby-devel
30 tv 872141 BuildRequires: python3-devel
31 tv 1150541 # (tv) fix build:
32 wally 1205508 BuildRequires: ruby-psych
33 tv 995336 # For doc:
34     BuildRequires: asciidoc
35 colin 266012
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 ngompa 1326320 %package -n %{devname}
54 colin 266012 Summary: Development files for %{name}
55 colin 266165 Group: Development/C
56 colin 266164 Provides: %{name}-devel = %{version}-%{release}
57 colin 266012 Requires: %{libname} = %{version}-%{release}
58     Requires: cmake
59    
60 ngompa 1326320 %description -n %{devname}
61 colin 266012 Development files for %{name}
62    
63 tv 995336 %package doc
64     Summary: Documentation for %{name}
65     Group: Documentation
66    
67     %description doc
68     Documentation for %{name}
69    
70 colin 266012 %package tools
71     Summary: A new approach to package dependency solving
72 fwang 390773 Group: System/Packaging
73 colin 266012 Requires: gzip
74     Requires: bzip2
75 ngompa 1481558 Requires: zchunk
76     Requires: zstd
77 colin 266012
78     %description tools
79     Package dependency solver tools.
80    
81 ngompa 1095672 %package demo
82     Summary: Application demoing the libsolv library
83     Group: System/Packaging
84     Requires: %{libname} = %{version}-%{release}
85 ngompa 1326320 Requires: %{name}-tools = %{version}-%{release}
86 ngompa 1095672 Requires: curl
87     Requires: gnupg2
88 colin 266012
89 ngompa 1095672 %description demo
90     Applications demoing the libsolv library.
91 colin 266012
92     %package -n ruby-solv
93     Summary: Ruby bindings for the libsolv library
94 colin 266215 Group: Development/Ruby
95 colin 266012
96     %description -n ruby-solv
97 ngompa 910846 Ruby bindings for libsolv.
98 colin 266012
99 tv 888386 %package -n python3-solv
100 colin 266012 Summary: Python bindings for the libsolv library
101 colin 266215 Group: Development/Python
102 ngompa 1326320 %{?python_provide: %python_provide python3-solv}
103 colin 266012
104 tv 888386 %description -n python3-solv
105 ngompa 910846 Python bindings for libsolv.
106 colin 266012
107     %package -n perl-solv
108     Summary: Perl bindings for the libsolv library
109 colin 266215 Group: Development/Perl
110 colin 266012
111     %description -n perl-solv
112 ngompa 910846 Perl bindings for libsolv.
113 colin 266012
114     %prep
115 ngompa 1095672 %autosetup -p1
116 colin 266012
117     %build
118     %cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \
119 ngompa 1099280 -DWITH_LIBXML2=1 \
120 ngompa 1326320 -DWITH_SYSTEM_ZCHUNK=1 \
121 colin 266012 -DENABLE_PERL=1 \
122     -DENABLE_PYTHON=1 \
123     -DENABLE_RUBY=1 \
124 ngompa 1000183 -DUSE_VENDORDIRS=1 \
125     -DENABLE_APPDATA=1 \
126 ngompa 1047200 -DENABLE_COMPS=1 -DMAGEIA=1 \
127 ngompa 1000183 -DENABLE_RPMDB_BYRPMHEADER=1 \
128 ngompa 1198408 -DENABLE_RPMDB_LIBRPM=1 \
129     -DENABLE_RPMPKG_LIBRPM=1 \
130 ngompa 1000183 -DENABLE_LZMA_COMPRESSION=1 \
131     -DENABLE_BZIP2_COMPRESSION=1 \
132 ngompa 1250809 -DENABLE_ZSTD_COMPRESSION=1 \
133 colin 266012 -DENABLE_SUSEREPO=1 \
134 colin 266164 -DENABLE_HELIXREPO=1 \
135 tv 620875 -DENABLE_DEBIAN=1 \
136     -DENABLE_ARCHREPO=1 \
137 tv 885121 -DENABLE_COMPLEX_DEPS=1 \
138 tv 620875 -DMULTI_SEMANTICS=1
139 ngompa 1095672
140 wally 1474077 %cmake_build
141 ngompa 1095672
142 wally 1474077 pushd %{_vpath_builddir}/doc
143 ngompa 1151898 cp -a ../../doc/*.txt .
144     cp -a ../../doc/gen gen
145     cp ../../doc/Makefile.gen .
146     make -f Makefile.gen html
147 tv 995336 popd
148 colin 266012
149 ngompa 1151898
150 colin 266012 %install
151 wally 1474077 %cmake_install
152 colin 266012
153    
154     %files -n %{libname}
155 ngompa 1000183 %license LICENSE*
156 ngompa 1326320 %doc README
157 fwang 276434 %{_libdir}/libsolv.so.%{major}
158     %{_libdir}/libsolvext.so.%{major}
159 colin 266012
160 tv 995336 %files doc
161 ngompa 1151898 %doc build/doc/gen/*.html
162 tv 995336
163 colin 266012 %files tools
164     %{_bindir}/installcheck
165 daviddavid 1379879 %{_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 colin 266012
187 ngompa 1326320 %files -n %{devname}
188 tv 879977 %doc examples/solv
189 ngompa 1086433 %{_libdir}/libsolv*.so
190 colin 266012 %{_includedir}/solv
191     %{_datadir}/cmake/Modules/FindLibSolv.cmake
192 tv 440722 %{_mandir}/man3/*
193 ngompa 1086433 %{_libdir}/pkgconfig/libsolv*.pc
194 colin 266012
195 ngompa 1095672 %files demo
196     %{_bindir}/solv
197 ngompa 1250809 %{_mandir}/man1/solv.1*
198 colin 266012
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 tv 888386 %files -n python3-solv
208 colin 266012 %doc examples/pysolv
209 tv 872124 %{python3_sitearch}/*

  ViewVC Help
Powered by ViewVC 1.1.30