Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
Core
Tor
Commits
abce15b9
Commit
abce15b9
authored
16 years ago
by
Andrew Lewman
Browse files
Options
Downloads
Patches
Plain Diff
Patch from Camilo Viecco to make the rpm spec arch independent, as far
as i've tested. svn:r16867
parent
f0a5ef80
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tor.spec.in
+5
-18
5 additions, 18 deletions
tor.spec.in
with
5 additions
and
18 deletions
tor.spec.in
+
5
−
18
View file @
abce15b9
...
...
@@ -18,19 +18,9 @@
## Target a specific arch and OS
#
# default is i386 linux
%define target gnu
%define target_cpu i386
%define target_os linux
## Override any system rpm macros
#
%define _arch %{target_cpu}
%define _build_arch %{target_cpu}
%define _vendor %{target_os}
%define _host %{target_cpu}-pc-%{target_os}-%{target}
%define _host_cpu %{target_cpu}
%define _host_vendor %{target_os}
%define optflags -march=%{target_cpu} -mtune=%{target_cpu} -O2
## Version song and dance
#
...
...
@@ -45,7 +35,6 @@
## Define output filename
#
# This creates filenames based upon the value of target_cpu defined above
%define _build_name_fmt %%{NAME}-%%{VERSION}-%%{RELEASE}.%{target_cpu}.rpm
## Release and OS identification song and dance
#
...
...
@@ -128,8 +117,8 @@ Packager: Andrew Lewman <phobos@rootme.org>
Requires: openssl >= 0.9.6
BuildRequires: openssl-devel >= 0.9.6, rpm >= 4.0, zlib-devel
%else
Requires: openssl >= 0.9.6
BuildRequires: openssl-devel >= 0.9.6, libevent-devel >= 1.1
a
Requires: openssl >= 0.9.6
, libevent >= 1.1
BuildRequires: openssl-devel >= 0.9.6, libevent-devel >= 1.1
%endif
%if %{is_fc}
BuildRequires: rpm-build >= 4.0
...
...
@@ -169,11 +158,9 @@ for high-stakes anonymity.
%build
%if %{is_suse}
%configure --with-tor-user=%{toruser} --with-tor-group=%{torgroup} \
--build=%{_host} --host=%{_host} --target=%{_host}
%configure --with-tor-user=%{toruser} --with-tor-group=%{torgroup}
%else
%configure --with-tor-user=%{toruser} --with-tor-group=%{torgroup} \
--build=%{_host} --host=%{_host} --target=%{_host}
%configure --with-tor-user=%{toruser} --with-tor-group=%{torgroup}
%endif
%make
...
...
@@ -190,7 +177,7 @@ for high-stakes anonymity.
%__install -p -m 755 contrib/torctl ${RPM_BUILD_ROOT}%{_bindir}
# Set up config file; "sample" file implements a basic user node.
%__install -p -m 644
src/config
/torrc.sample ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}/torrc
.sample
%__install -p -m 644
${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}
/torrc.sample ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}/torrc
# Install the logrotate control file.
%__mkdir_p -m 755 ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment