-
Notifications
You must be signed in to change notification settings - Fork 0
/
libhideip.spec.in
94 lines (75 loc) · 2.18 KB
/
libhideip.spec.in
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
# Special names here like {__make} come from /usr/lib/rpm/macros, /usr/lib/rpm/macros.rpmbuild
%define lhip_version @VERSION@
%define lhip_name libhideip
%define lhip_release 1
%define lhip_url https://libhideip.sourceforge.io
%define lhip_descr LibHideIP is a library which intercepts system calls that may lead to \
getting your local IP address by programs, which is bad for your privacy. \
The potentially-dangerous functions are replaced by safe ones, which return \
neutral data.
%define lhip_lic GPLv3+
%define lhip_summary Library for IP address hiding
Summary: %{lhip_summary}
Name: %{lhip_name}
Version: %{lhip_version}
Release: %{lhip_release}
URL: %{lhip_url}
BugURL: %{lhip_url}
License: %{lhip_lic}
# group must be one of the listed in /usr/share/doc/rpm-.../GROUPS or /usr/share/rpmlint/config.d/distro.conf
Group: System/Libraries
#Group: System Utilities
#Prefix: /usr/local
Source: %{lhip_name}-%{lhip_version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-build
BuildRequires: gcc, glibc, glibc-devel, make
%description
%{lhip_descr}
%prep
%setup -q
%configure --enable-static --enable-shared --enable-public-interface
%build
%make_build
%install
%make_install
%preun
#sed -i 's/^.*libhideip.so//g' /etc/ld.so.preload
%post
ldconfig
#install-info
%postun -p /sbin/ldconfig
%clean
%{__rm} -rf $RPM_BUILD_ROOT
# % define _unpackaged_files_terminate_build 0
%files
%defattr(-,root,root)
%{_libdir}/libhideip.so
%{_libdir}/libhideip.so.9
%{_libdir}/libhideip.so.9.0.0
%{_libdir}/libhideip.la
%doc %{_infodir}/libhideip.info%_extension
%doc %{_mandir}/man3/libhideip.3%_extension
%doc README
%doc COPYING
%doc AUTHORS
%doc ChangeLog
%changelog
############################################################################
%package devel
Summary: %{lhip_summary} - development package
Release: %{lhip_release}
URL: %{lhip_url}
BugURL: %{lhip_url}
License: %{lhip_lic}
Group: Development/C
#Prefix: /usr/local
Requires: %{lhip_name} = %{lhip_version}
BuildRequires: gcc, glibc, glibc-devel, make
%files devel
%defattr(-,root,root)
%{_includedir}/libhideip.h
%{_libdir}/libhideip.a
%{_libdir}/pkgconfig/libhideip.pc
%description devel
This is the development package for LibHideIP.
%{lhip_descr}