forked from vmware/tdnf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtdnf.spec
131 lines (110 loc) · 4.18 KB
/
tdnf.spec
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
#
# tdnf spec file
#
Summary: dnf/yum equivalent using C libs
Name: tdnf
Version: 1.0.9
Release: 0%{?dist}
Vendor: VMware, Inc.
Distribution: Photon
License: VMware
Url: https://github.com/vmware/tdnf
Group: Applications/RPM
Requires: hawkey, librepo, rpm
BuildRequires: popt-devel
BuildRequires: rpm-devel
BuildRequires: glib-devel
BuildRequires: hawkey-devel >= 0.5.3
BuildRequires: openssl-devel
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
BuildRequires: librepo-devel
Source0: %{url}/archive/%{name}-%{version}/%{name}-%{version}.tar.gz
%define sha1 tdnf=e760f1313941996891f1b1afec4e9f75fb0afa17
%description
tdnf is a yum/dnf equivalent
which uses libhawkey and librepo
%package devel
Summary: A Library providing C API for tdnf
Group: Development/Libraries
Requires: tdnf = %{version}-%{release}
%description devel
Development files for tdnf
%prep
%autosetup
%build
autoreconf -i
./configure --prefix=%{_prefix} --bindir=%{_bindir} --libdir=%{_libdir} --sysconfdir=/etc
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install
mkdir -p %{buildroot}/var/cache/tdnf
ln -sf %{_bindir}/tdnf %{buildroot}%{_bindir}/tyum
mkdir -p %{buildroot}%{_includedir}/tdnf
mv %{buildroot}%{_includedir}/*.h %{buildroot}%{_includedir}/tdnf
# Pre-install
%pre
# First argument is 1 => New Installation
# First argument is 2 => Upgrade
# Post-install
%post
# First argument is 1 => New Installation
# First argument is 2 => Upgrade
/sbin/ldconfig
# Pre-uninstall
%preun
# First argument is 0 => Uninstall
# First argument is 1 => Upgrade
# Post-uninstall
%postun
/sbin/ldconfig
# First argument is 0 => Uninstall
# First argument is 1 => Upgrade
%files
%defattr(-,root,root,0755)
%{_bindir}/tdnf
%{_bindir}/tyum
%{_libdir}/*.so*
%config(noreplace) %{_sysconfdir}/tdnf/tdnf.conf
%dir /var/cache/tdnf
%files devel
%defattr(-,root,root)
%{_includedir}/tdnf/*.h
%{_libdir}/*.a
%{_libdir}/*.la
%exclude %{_libdir}/debug
%changelog
* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.0.9-2
- GA - Bump release of all rpms
* Fri May 20 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.0.9-1
- Update to 1.0.9. Contains fixes for updateinfo.
* Wed May 4 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.0.8-3
- Fix link installs, fix devel header dir
* Fri Apr 1 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.0.8-2
- Update version which was missed with 1.0.8-1, apply string limits
* Fri Apr 1 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.0.8-1
- Code scan fixes, autotest path fix, support --releasever
* Thu Jan 14 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.0.7
- Fix return codes on install and check-update
- Add tests for install existing and update
* Wed Jan 13 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.0.6
- Support distroverpkg and add tests to work with make check
* Mon Dec 14 2015 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.0.5
- Support for multiple packages in alter commands
- Support url vars for releasever and basearch
* Fri Oct 2 2015 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.0.4
- Fix upgrade to work without args, Engage distro-sync
- Fix install to resolve to latest available
- Fix formats, fix refresh on download output
* Tue Sep 8 2015 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.0.3
- Fix metadata creation issues. Engage refresh flag.
- Do not check gpgkey when gpgcheck is turned off in repo.
* Thu Jul 23 2015 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.0.2
- Support reinstalls in transaction. Handle non-existent packages correctly.
* Mon Jul 13 2015 Alexey Makhalov <amakhalov@vmware.com> 1.0.1-2
- Create -debuginfo package. Use parallel make.
* Tue Jun 30 2015 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.0.1
- Proxy support, keepcache fix, valgrind leaks fix
* Fri Jan 23 2015 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.0
- Initial build. First version