blob: 610f17d53c6a8887acd46c2e60634ec5dcd5b23f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
|
Name: libsolv
Version: @VERSION@
Release: 1
License: BSD 3-Clause
Url: git://gitorious.org/opensuse/libsolv.git
Source: libsolv-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Group: Development/Libraries/C and C++
Prefix: /usr
BuildRequires: doxygen
%if 0%{?mandriva_version}
# force this version on mandriva
BuildRequires: libneon0.26-devel
%endif
%if 0%{?fedora_version}
BuildRequires: db4-devel ruby ruby-rdoc
%endif
%if 0%{?suse_version}
%if 0%{?suse_version} < 1030
BuildRequires: expat
%else
BuildRequires: libexpat-devel
%endif
%if 0%{?suse_version} < 1100
BuildRequires: graphviz
%endif
%if 0%{?suse_version} > 1020
BuildRequires: fdupes
%endif
%else
BuildRequires: expat-devel
%endif
BuildRequires: cmake rpm-devel gcc-c++
BuildRequires: zlib-devel
Summary: A new approach to package dependency solving
%description
A new approach to package dependency solving
Authors:
--------
Michael Schroeder <mls@suse.de>
Klaus Kaempf <kkaempf@suse.de>
Stephan Kulow <coolo@suse.de>
Michael Matz <matz@suse.de>
Duncan Mac-Vicar P. <dmacvicar@suse.de>
%package -n libsolv@LIBSOLV_SOVERSION@
Summary: A new approach to package dependency solving
Group: Development/Libraries/C and C++
%description -n libsolv@LIBSOLV_SOVERSION@
A new approach to package dependency solving
Authors:
--------
Michael Schroeder <mls@suse.de>
Klaus Kaempf <kkaempf@suse.de>
Stephan Kulow <coolo@suse.de>
Michael Matz <matz@suse.de>
Duncan Mac-Vicar P. <dmacvicar@suse.de>
%package devel
Summary: A new approach to package dependency solving
Group: Development/Libraries/C and C++
Requires: libsolv-tools = %version
Requires: rpm-devel
%description devel
Development files for libsolv, a new approach to package dependency solving
Authors:
--------
Michael Schroeder <mls@suse.de>
Klaus Kaempf <kkaempf@suse.de>
Stephan Kulow <coolo@suse.de>
Michael Matz <matz@suse.de>
Duncan Mac-Vicar P. <dmacvicar@suse.de>
%package tools
Summary: A new approach to package dependency solving
Group: Development/Libraries/C and C++
Obsoletes: libsatsolver <= 0.0.15
Provides: libsatsolver = %{version}-%{release}
Requires: gzip bzip2 coreutils
%description tools
A new approach to package dependency solving.
%package demo
Summary: Applications demoing the libsolv library
Group: System/Management
Requires: curl
%if 0%{?fedora_version}
Requires: gnupg2
%endif
%if 0%{?suse_version}
Requires: gpg2
%endif
%description demo
Applications demoing the libsolv library.
%prep
%setup -n libsolv-%{version}
%build
export CFLAGS="$RPM_OPT_FLAGS"
export CXXFLAGS="$CFLAGS"
CMAKE_FLAGS=
%if 0%{?fedora_version}
CMAKE_FLAGS="-DFEDORA=1"
%endif
cmake $CMAKE_FLAGS \
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
-DLIB=%{_lib} \
-DCMAKE_VERBOSE_MAKEFILE=TRUE \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_SKIP_RPATH=1
make %{?jobs:-j %jobs}
%install
make DESTDIR=$RPM_BUILD_ROOT install
# we want to leave the .a file untouched
export NO_BRP_STRIP_DEBUG=true
%clean
rm -rf "$RPM_BUILD_ROOT"
%files -n libsolv@LIBSOLV_SOVERSION@
%defattr(-,root,root)
%doc LICENSE*
%_libdir/libsolv.so.*
%_libdir/libsolvext.so.*
%files tools
%defattr(-,root,root)
%exclude /usr/bin/helix2solv
%exclude /usr/bin/solv
/usr/bin/*
%files devel
%defattr(-,root,root)
%_libdir/libsolv.so
%_libdir/libsolvext.so
/usr/include/solv
/usr/bin/helix2solv
%files demo
%defattr(-,root,root)
/usr/bin/solv
%changelog
|