Commit Graph
22 Commits
Author SHA1 Message Date
Maxim Galaganov 549b9bedb9 Fix rpm build for fedora 36 2022-06-26 06:21:38 +08:00
Max Prokhorov 999e0555c7 Fedora COPR support
- Support .copr/Makefile for 'SCM / make srpm' COPR package
- Use genrpm.sh to generate srpm and optionally build it
- Use generic substitution syntax in specfile
2018-05-14 09:38:07 +03:00
Yuxiang Zhu 6e99ee00db RPM packaging: replace udns with c-ares (#1662) 2017-09-04 15:27:04 +08:00
Yuxiang Zhu a489834204 Refine SPEC for RPM packages
This change includes:

1. Move shared library `shadowsocks-libev.so.*` to an package `libshadowsocks-libev`
and rename package `shadowsocks-libev-devel` to `libshadowsocks-libev-devel`
to reconcile with the deb packages.
2. Add a new package `shadowsocks-libev-zsh-completion`.
3. Run `setcap` after installation (similar to #1119).
4. Remove ss-nat because it is designed for OpenWrt/LEDE.
5. Auto restart instantiated services after update and stop/disable instantiated
services after uninstallation.
2017-08-23 16:09:49 +08:00
Yuxiang Zhu feeaff85e1 Provides separated service files for RPM packages
As discussed with @librehat in #1604, maintaining a separate set of systemd
files for RPM distributions will be convenient to build on Copr.

This patch will also change some lines in rpm/genrpm.sh to archive the
source code using `git archive` because the old logic doesn't respect
`.gitignore`.
2017-08-22 08:53:56 +08:00
Yuxiang Zhu c90cb5a0ae Fix #1533
This patch is going to replace the group name 'nogroup' with 'nobody' in
debian/shadowsocks-libev.service, and move file
'/etc/default/shadowsocks-libev' to '/etc/sysconfig/shadowsocks-libev'.

This is implemented by creating a text patch file. Not sure whether
there is a better approach.
2017-06-28 05:02:49 -05:00
Rayson zhu a61e3e0f78 fix rpm SPEC file
1. add missing build and runtime dependencies
2. change minimal version requirement for libsodium to 1.0.4, which
should work fine with ss-libev and EPEL7 users will not have to compile a
later version.
3. add more entries to .gitignore
2017-03-03 16:32:17 +08:00
Rayson zhu 8194e91970 Rewrite genrpm.sh to build RPM from current Git workspace
Here are the problems existing in the old RPM packaging scripts:

1. The old `genrpm.sh` is designed to build RPMs for all versions of
shadowsocks-libev with an option '-v'.
This increases the complexity because we need to keep it compatible
with old versions.
2. I have to modify the script manually in order to build RPMs from
non-release commit or dirty workspace.

The new script will only build RPMs and SRPMs from current workspace,
not commit.
The version-release number will be determined automatically from the
`git describe` command.
2017-03-03 13:31:25 +08:00
was4444 998cb109d3 pack submodules for genrpm (#1293)
* add option to run autogen before configure

* pack submodules for genrpm
2017-02-22 16:57:59 +08:00
was4444 eaefbe1e76 genrpm changes (#1292)
* auto select latest version

* bash-completion comes with version 2.6.0

* version greater than 2.6.2 need submodules packed

* adjust version check order
2017-02-22 12:19:52 +08:00
Rayson zhu 7bbf81068b fix broken EL6 packaging support
Tests show that EL6 is too old to support `%elif` statement (which is very stupid).
And revert dependency `openssl-libs` to `openssl` because of
inconsistent names in EL6.
2016-11-25 03:13:40 -06:00
Rayson zhu 5d85590f7c support packaging for openSUSE 2016-11-25 02:13:10 -06:00
Rayson zhu b80c159758 RPM packaing: move .la and .so to devel subpackage 2016-11-20 00:06:16 -06:00
Rayson zhu 9754edda9c package bash completion files 2016-11-20 12:58:31 +08:00
Rayson Zhu e5d53933d5 Fix missing dependencies (#894)
* Add missing build dependencies to RPM spec

* Fail if `asciidoc` or `xmlto` not found
2016-10-21 11:05:42 +08:00
Max Lv 91b4e6ad6d Fix #887 2016-10-18 13:21:33 +08:00
Rayson Zhu 0230620c27 Include shadowsocks-libev-*.service files for RPM packages (#886) 2016-10-16 09:40:29 +08:00
惠轶群 41b1146360 update Version to 2.4.1 2015-11-05 13:50:24 +08:00
Symeon Huang 4aeb4eed01 fix rpm spec 2015-09-28 12:31:06 +01:00
Symeon Huang 227272b501 using macros where possible 2015-09-27 15:38:16 +01:00
Symeon Huang 88b906328f update rpm spec file.
use files from debian directory if possible
2015-09-27 15:30:47 +01:00
cuckoo 9985aaa35f add rpm support 2015-03-24 23:55:41 +08:00