summaryrefslogtreecommitdiff
path: root/contrib/razor.spec
blob: e3e861b85bc8841293eddc47ab517e02c5e17fd3 (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
Summary:   Razor is a package management system replacing rpm and yum
Name:      razor
Version:   0.1
Release:   0.1%{?dist}
License:   GPLv2+
Group:     System Environment/Libraries
URL:       http://github.com/krh/razor/wikis
Source0:   http://people.freedesktop.org/~krh/releases/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

Requires: expat
Requires: rpm-libs

BuildRequires: expat-devel
BuildRequires: libtool
BuildRequires: gettext
BuildRequires: libcurl-devel
BuildRequires: rpm-devel
BuildRequires: zlib-devel
BuildRequires: perl(XML::Parser)

%description
Razor is a package management system replacing rpm and yum.
Razor implements management of packages installed on the system,
dependency solving, and upgrading in a small compact code base with
minimal dependencies.

%package libs
Summary: Libraries for accessing razor
Group: Development/Libraries
Requires: expat >= %{dbus_version}
Requires: %{name} = %{version}-%{release}

%description libs
Libraries for accessing razor.

%package devel
Summary: Libraries and headers for razor
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: pkgconfig
Requires: libcurl-devel
Requires: rpm-devel
Requires: zlib-devel

%description devel
Headers and libraries for razor.

%prep
%setup -q

%build
%configure

make %{?_smp_mflags}

%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT

rm -f $RPM_BUILD_ROOT%{_libdir}/librazor*.a
rm -f $RPM_BUILD_ROOT%{_libdir}/librazor*.la

#%find_lang %name

%clean
rm -rf $RPM_BUILD_ROOT

%post libs -p /sbin/ldconfig

%postun libs -p /sbin/ldconfig

%files
# -f %{name}.lang
%defattr(-,root,root,-)
%doc README AUTHORS NEWS COPYING
%dir %{_datadir}/doc/razor
%doc %{_datadir}/doc/razor/*.txt
%config %{_sysconfdir}/bash_completion.d/*.sh
%{_bindir}/razor
%exclude %{_libdir}/librazor*.so.*

%files libs
%defattr(-,root,root,-)
%doc README AUTHORS NEWS COPYING
%{_libdir}/*razor*.so.*

%files devel
%defattr(-,root,root,-)

%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*
%{_includedir}/*

%changelog
* Mon Jun 16 2008 Richard Hughes <richard@hughsie.com> 0.1-0.1
- Initial version