-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlibhideip.spec.in
More file actions
123 lines (102 loc) · 3.31 KB
/
libhideip.spec.in
File metadata and controls
123 lines (102 loc) · 3.31 KB
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
#
# LibHideIP - A library for hiding local IP address.
# -- libhideip.spec.in, part of the build system.
#
# @configure_input@
#
# Copyright (C) 2008-2024 Bogdan Drozdowski, bogdro (at) users . sourceforge . net
# License: GNU General Public License, v3+
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 3
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# 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
# Settings (/usr/lib/rpm/macros.d/macros.spec-helper, /usr/lib/rpm/macros)
%define dont_remove_libtool_files 1
# define _unpackaged_files_terminate_build 0
Summary: %{lhip_summary}
Name: %{lhip_name}
Version: %{lhip_version}
Release: %{lhip_release}%{?dist}
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, texinfo
%description
%{lhip_descr}
%prep
%setup -q
%configure --enable-static --enable-shared --enable-public-interface
%build
%make_build
%install
%make_install
libtool --finish %{_libdir}
%preun
#sed -i '/libhideip/ d' /etc/ld.so.preload
%post
/sbin/ldconfig %{_libdir}
#install-info
%postun
/sbin/ldconfig %{_libdir}
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%{_libdir}/libhideip.so
%{_libdir}/libhideip.so.10
%{_libdir}/libhideip.so.10.0.0
%{_libdir}/libhideip.la
%doc %{_infodir}/libhideip.info%_extension
%doc %{_mandir}/man3/libhideip.3%_extension
%ghost %config(missingok,noreplace) %attr(644,-,-) %{_sysconfdir}/libhideip.progban
%doc README
%doc COPYING
%doc AUTHORS
%doc ChangeLog
%changelog
############################################################################
%package devel
Summary: %{lhip_summary} - development package
Release: %{lhip_release}%{?dist}
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}