2020-05-25 22:30:18 +03:00
|
|
|
Name: i2pd
|
2021-11-28 02:01:13 +03:00
|
|
|
Version: 2.40.0
|
2021-08-24 03:16:28 +03:00
|
|
|
Release: 2%{?dist}
|
2020-05-25 22:30:18 +03:00
|
|
|
Summary: I2P router written in C++
|
|
|
|
Conflicts: i2pd-git
|
2016-10-20 13:18:59 +03:00
|
|
|
|
2020-05-25 22:30:18 +03:00
|
|
|
License: BSD
|
|
|
|
URL: https://github.com/PurpleI2P/i2pd
|
|
|
|
Source0: https://github.com/PurpleI2P/i2pd/archive/%{version}/%name-%version.tar.gz
|
2016-10-20 13:18:59 +03:00
|
|
|
|
2020-05-25 21:22:50 +03:00
|
|
|
%if 0%{?rhel} == 7
|
2021-08-22 23:41:36 +03:00
|
|
|
BuildRequires: cmake3
|
2016-10-20 13:18:59 +03:00
|
|
|
%else
|
2021-08-22 23:41:36 +03:00
|
|
|
BuildRequires: cmake
|
2016-10-20 13:18:59 +03:00
|
|
|
%endif
|
|
|
|
|
2020-05-25 22:30:18 +03:00
|
|
|
BuildRequires: chrpath
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: zlib-devel
|
|
|
|
BuildRequires: boost-devel
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
BuildRequires: miniupnpc-devel
|
|
|
|
BuildRequires: systemd-units
|
2016-10-20 13:18:59 +03:00
|
|
|
|
2020-05-25 22:30:18 +03:00
|
|
|
Requires: logrotate
|
|
|
|
Requires: systemd
|
|
|
|
Requires(pre): %{_sbindir}/useradd %{_sbindir}/groupadd
|
2016-10-20 13:18:59 +03:00
|
|
|
|
2018-01-27 18:54:03 +03:00
|
|
|
%description
|
2016-10-20 13:18:59 +03:00
|
|
|
C++ implementation of I2P.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
cd build
|
2018-01-06 06:48:51 +03:00
|
|
|
%if 0%{?rhel} == 7
|
2016-10-20 13:18:59 +03:00
|
|
|
%cmake3 \
|
|
|
|
-DWITH_LIBRARY=OFF \
|
|
|
|
-DWITH_UPNP=ON \
|
|
|
|
-DWITH_HARDENING=ON \
|
|
|
|
-DBUILD_SHARED_LIBS:BOOL=OFF
|
|
|
|
%else
|
|
|
|
%cmake \
|
|
|
|
-DWITH_LIBRARY=OFF \
|
|
|
|
-DWITH_UPNP=ON \
|
|
|
|
-DWITH_HARDENING=ON \
|
2019-01-22 04:57:53 +03:00
|
|
|
%if 0%{?fedora} > 29
|
|
|
|
-DBUILD_SHARED_LIBS:BOOL=OFF \
|
|
|
|
.
|
|
|
|
%else
|
2016-10-20 13:18:59 +03:00
|
|
|
-DBUILD_SHARED_LIBS:BOOL=OFF
|
|
|
|
%endif
|
2019-01-22 04:57:53 +03:00
|
|
|
%endif
|
2016-10-20 13:18:59 +03:00
|
|
|
|
2021-08-24 03:16:28 +03:00
|
|
|
%if 0%{?fedora} >= 35
|
2021-08-22 23:41:36 +03:00
|
|
|
pushd redhat-linux-build
|
2021-08-22 22:44:04 +03:00
|
|
|
%else
|
2021-08-22 23:41:36 +03:00
|
|
|
%if 0%{?fedora} >= 33
|
|
|
|
pushd %{_target_platform}
|
|
|
|
%endif
|
2020-10-29 01:17:07 +03:00
|
|
|
%endif
|
|
|
|
|
2020-02-26 16:41:35 +03:00
|
|
|
%if 0%{?mageia} > 7
|
2021-08-22 23:41:36 +03:00
|
|
|
pushd build
|
2020-10-29 01:17:07 +03:00
|
|
|
%endif
|
|
|
|
|
2016-10-20 13:18:59 +03:00
|
|
|
make %{?_smp_mflags}
|
2020-10-29 01:17:07 +03:00
|
|
|
|
|
|
|
%if 0%{?fedora} >= 33
|
2021-08-22 23:41:36 +03:00
|
|
|
popd
|
2020-02-26 16:41:35 +03:00
|
|
|
%endif
|
2016-10-20 13:18:59 +03:00
|
|
|
|
2020-10-29 01:17:07 +03:00
|
|
|
%if 0%{?mageia} > 7
|
2021-08-22 23:41:36 +03:00
|
|
|
popd
|
2020-10-29 01:17:07 +03:00
|
|
|
%endif
|
2016-10-20 13:18:59 +03:00
|
|
|
|
|
|
|
%install
|
2020-02-26 16:41:35 +03:00
|
|
|
pushd build
|
|
|
|
|
2021-08-24 03:16:28 +03:00
|
|
|
%if 0%{?fedora} >= 35
|
2021-08-22 23:41:36 +03:00
|
|
|
pushd redhat-linux-build
|
2021-08-22 22:44:04 +03:00
|
|
|
%else
|
2021-08-22 23:41:36 +03:00
|
|
|
%if 0%{?fedora} >= 33
|
|
|
|
pushd %{_target_platform}
|
|
|
|
%endif
|
2020-10-29 01:17:07 +03:00
|
|
|
%endif
|
|
|
|
|
2018-11-11 22:28:34 +03:00
|
|
|
%if 0%{?mageia}
|
2021-08-22 23:41:36 +03:00
|
|
|
pushd build
|
2018-11-11 22:28:34 +03:00
|
|
|
%endif
|
2020-02-26 16:41:35 +03:00
|
|
|
|
2016-10-20 13:18:59 +03:00
|
|
|
chrpath -d i2pd
|
2020-05-25 21:22:50 +03:00
|
|
|
%{__install} -D -m 755 i2pd %{buildroot}%{_sbindir}/i2pd
|
|
|
|
%{__install} -d -m 755 %{buildroot}%{_datadir}/i2pd
|
|
|
|
%{__install} -d -m 700 %{buildroot}%{_sharedstatedir}/i2pd
|
|
|
|
%{__install} -d -m 700 %{buildroot}%{_localstatedir}/log/i2pd
|
|
|
|
%{__install} -D -m 644 %{_builddir}/%{name}-%{version}/contrib/i2pd.conf %{buildroot}%{_sysconfdir}/i2pd/i2pd.conf
|
|
|
|
%{__install} -D -m 644 %{_builddir}/%{name}-%{version}/contrib/subscriptions.txt %{buildroot}%{_sysconfdir}/i2pd/subscriptions.txt
|
|
|
|
%{__install} -D -m 644 %{_builddir}/%{name}-%{version}/contrib/tunnels.conf %{buildroot}%{_sysconfdir}/i2pd/tunnels.conf
|
|
|
|
%{__install} -D -m 644 %{_builddir}/%{name}-%{version}/contrib/i2pd.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/i2pd
|
|
|
|
%{__install} -D -m 644 %{_builddir}/%{name}-%{version}/contrib/i2pd.service %{buildroot}%{_unitdir}/i2pd.service
|
|
|
|
%{__install} -D -m 644 %{_builddir}/%{name}-%{version}/debian/i2pd.1 %{buildroot}%{_mandir}/man1/i2pd.1
|
2018-01-22 21:55:12 +03:00
|
|
|
%{__cp} -r %{_builddir}/%{name}-%{version}/contrib/certificates/ %{buildroot}%{_datadir}/i2pd/certificates
|
2018-11-07 18:41:04 +03:00
|
|
|
%{__cp} -r %{_builddir}/%{name}-%{version}/contrib/tunnels.d/ %{buildroot}%{_sysconfdir}/i2pd/tunnels.conf.d
|
2018-02-01 19:37:38 +03:00
|
|
|
ln -s %{_datadir}/%{name}/certificates %{buildroot}%{_sharedstatedir}/i2pd/certificates
|
2016-10-20 13:18:59 +03:00
|
|
|
|
|
|
|
|
2018-01-27 18:54:03 +03:00
|
|
|
%pre
|
2016-10-20 13:18:59 +03:00
|
|
|
getent group i2pd >/dev/null || %{_sbindir}/groupadd -r i2pd
|
|
|
|
getent passwd i2pd >/dev/null || \
|
|
|
|
%{_sbindir}/useradd -r -g i2pd -s %{_sbindir}/nologin \
|
|
|
|
-d %{_sharedstatedir}/i2pd -c 'I2P Service' i2pd
|
|
|
|
|
|
|
|
|
2018-01-27 18:54:03 +03:00
|
|
|
%post
|
2016-10-20 13:18:59 +03:00
|
|
|
%systemd_post i2pd.service
|
|
|
|
|
|
|
|
|
2018-01-27 18:54:03 +03:00
|
|
|
%preun
|
2016-10-20 13:18:59 +03:00
|
|
|
%systemd_preun i2pd.service
|
|
|
|
|
|
|
|
|
2018-01-27 18:54:03 +03:00
|
|
|
%postun
|
2016-10-20 13:18:59 +03:00
|
|
|
%systemd_postun_with_restart i2pd.service
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
2020-05-25 21:22:50 +03:00
|
|
|
%doc LICENSE README.md contrib/i2pd.conf contrib/subscriptions.txt contrib/tunnels.conf contrib/tunnels.d
|
2018-01-22 21:55:12 +03:00
|
|
|
%{_sbindir}/i2pd
|
2020-05-07 13:11:30 +03:00
|
|
|
%config(noreplace) %{_sysconfdir}/i2pd/*.conf
|
2020-05-25 23:01:02 +03:00
|
|
|
%config(noreplace) %{_sysconfdir}/i2pd/tunnels.conf.d/*.conf
|
2020-05-25 22:30:18 +03:00
|
|
|
%config %{_sysconfdir}/i2pd/subscriptions.txt
|
|
|
|
%doc %{_sysconfdir}/i2pd/tunnels.conf.d/README
|
|
|
|
%{_sysconfdir}/logrotate.d/i2pd
|
2020-05-25 21:22:50 +03:00
|
|
|
%{_unitdir}/i2pd.service
|
|
|
|
%{_mandir}/man1/i2pd.1*
|
2018-01-22 21:55:12 +03:00
|
|
|
%dir %attr(0700,i2pd,i2pd) %{_sharedstatedir}/i2pd
|
2020-05-25 21:22:50 +03:00
|
|
|
%dir %attr(0700,i2pd,i2pd) %{_localstatedir}/log/i2pd
|
|
|
|
%{_datadir}/i2pd/certificates
|
2018-01-22 21:55:12 +03:00
|
|
|
%{_sharedstatedir}/i2pd/certificates
|
2016-10-20 13:18:59 +03:00
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2021-11-28 02:01:13 +03:00
|
|
|
* Mon Nov 29 2021 orignal <i2porignal@yandex.ru> - 2.40.0
|
|
|
|
- update to 2.40.0
|
|
|
|
|
2021-08-24 03:16:28 +03:00
|
|
|
* Mon Aug 24 2021 r4sas <r4sas@i2pmail.org> - 2.39.0-2
|
|
|
|
- changed if statements to cover fedora 35
|
|
|
|
|
2021-08-23 13:58:36 +03:00
|
|
|
* Mon Aug 23 2021 orignal <i2porignal@yandex.ru> - 2.39.0
|
|
|
|
- update to 2.39.0
|
2021-08-23 17:03:26 +03:00
|
|
|
- fixed build on fedora 36
|
2021-08-23 13:58:36 +03:00
|
|
|
|
2021-05-16 21:26:00 +03:00
|
|
|
* Mon May 17 2021 orignal <i2porignal@yandex.ru> - 2.38.0
|
|
|
|
- update to 2.38.0
|
|
|
|
|
2021-03-15 15:30:04 +03:00
|
|
|
* Mon Mar 15 2021 orignal <i2porignal@yandex.ru> - 2.37.0
|
|
|
|
- update to 2.37.0
|
|
|
|
|
2021-02-15 15:57:17 +03:00
|
|
|
* Mon Feb 15 2021 orignal <i2porignal@yandex.ru> - 2.36.0
|
|
|
|
- update to 2.36.0
|
|
|
|
|
2020-11-30 20:50:15 +03:00
|
|
|
* Mon Nov 30 2020 orignal <i2porignal@yandex.ru> - 2.35.0
|
|
|
|
- update to 2.35.0
|
|
|
|
|
2020-10-27 19:27:08 +03:00
|
|
|
* Tue Oct 27 2020 orignal <i2porignal@yandex.ru> - 2.34.0
|
|
|
|
- update to 2.34.0
|
|
|
|
|
2020-08-24 19:27:39 +03:00
|
|
|
* Mon Aug 24 2020 orignal <i2porignal@yandex.ru> - 2.33.0
|
|
|
|
- update to 2.33.0
|
|
|
|
|
2020-06-02 19:26:36 +03:00
|
|
|
* Tue Jun 02 2020 r4sas <r4sas@i2pmail.org> - 2.32.1
|
|
|
|
- update to 2.32.1
|
|
|
|
|
2020-05-25 15:43:16 +03:00
|
|
|
* Mon May 25 2020 r4sas <r4sas@i2pmail.org> - 2.32.0
|
|
|
|
- update to 2.32.0
|
|
|
|
- updated systemd service file (#1394)
|
|
|
|
|
2020-05-08 19:45:28 +03:00
|
|
|
* Thu May 7 2020 Anatolii Vorona <vorona.tolik@gmail.com> - 2.31.0-3
|
2020-05-07 13:11:30 +03:00
|
|
|
- added RPM logrotate config
|
|
|
|
|
2020-04-10 19:57:47 +03:00
|
|
|
* Fri Apr 10 2020 orignal <i2porignal@yandex.ru> - 2.31.0
|
|
|
|
- update to 2.31.0
|
|
|
|
|
2020-02-25 19:15:30 +03:00
|
|
|
* Tue Feb 25 2020 orignal <i2porignal@yandex.ru> - 2.30.0
|
|
|
|
- update to 2.30.0
|
|
|
|
|
2019-10-21 18:50:59 +03:00
|
|
|
* Mon Oct 21 2019 orignal <i2porignal@yandex.ru> - 2.29.0
|
|
|
|
- update to 2.29.0
|
|
|
|
|
2019-08-27 16:46:54 +03:00
|
|
|
* Tue Aug 27 2019 orignal <i2porignal@yandex.ru> - 2.28.0
|
|
|
|
- update to 2.28.0
|
|
|
|
|
2019-07-03 19:38:55 +03:00
|
|
|
* Wed Jul 3 2019 orignal <i2porignal@yandex.ru> - 2.27.0
|
|
|
|
- update to 2.27.0
|
|
|
|
|
2019-06-07 17:04:57 +03:00
|
|
|
* Fri Jun 7 2019 orignal <i2porignal@yandex.ru> - 2.26.0
|
|
|
|
- update to 2.26.0
|
|
|
|
|
2019-05-09 17:21:11 +03:00
|
|
|
* Thu May 9 2019 orignal <i2porignal@yandex.ru> - 2.25.0
|
|
|
|
- update to 2.25.0
|
|
|
|
|
2019-03-21 17:58:59 +03:00
|
|
|
* Thu Mar 21 2019 orignal <i2porignal@yandex.ru> - 2.24.0
|
|
|
|
- update to 2.24.0
|
|
|
|
|
2019-01-21 18:33:22 +03:00
|
|
|
* Mon Jan 21 2019 orignal <i2porignal@yandex.ru> - 2.23.0
|
|
|
|
- update to 2.23.0
|
|
|
|
|
2018-11-09 05:03:13 +03:00
|
|
|
* Fri Nov 09 2018 r4sas <r4sas@i2pmail.org> - 2.22.0
|
|
|
|
- update to 2.22.0
|
|
|
|
- add support of tunnelsdir option
|
|
|
|
|
2019-10-07 21:18:46 +03:00
|
|
|
* Mon Oct 22 2018 orignal <i2porignal@yandex.ru> - 2.21.1
|
2018-10-22 16:19:39 +03:00
|
|
|
- update to 2.21.1
|
|
|
|
|
2018-10-04 16:38:04 +03:00
|
|
|
* Thu Oct 4 2018 orignal <i2porignal@yandex.ru> - 2.21.0
|
|
|
|
- update to 2.21.0
|
|
|
|
|
2018-08-23 17:24:44 +03:00
|
|
|
* Thu Aug 23 2018 orignal <i2porignal@yandex.ru> - 2.20.0
|
|
|
|
- update to 2.20.0
|
|
|
|
|
2018-06-26 20:38:02 +03:00
|
|
|
* Tue Jun 26 2018 orignal <i2porignal@yandex.ru> - 2.19.0
|
|
|
|
- update to 2.19.0
|
|
|
|
|
2018-02-05 05:52:12 +03:00
|
|
|
* Mon Feb 05 2018 r4sas <r4sas@i2pmail.org> - 2.18.0-2
|
|
|
|
- Fixed blocking system shutdown for 10 minutes (#1089)
|
|
|
|
|
2018-02-01 19:37:38 +03:00
|
|
|
* Thu Feb 01 2018 r4sas <r4sas@i2pmail.org> - 2.18.0-1
|
|
|
|
- Added to conflicts i2pd-git package
|
|
|
|
- Fixed release versioning
|
|
|
|
- Fixed paths with double slashes
|
|
|
|
|
|
|
|
* Tue Jan 30 2018 orignal <i2porignal@yandex.ru> - 2.18.0
|
2018-01-30 18:41:35 +03:00
|
|
|
- update to 2.18.0
|
|
|
|
|
|
|
|
* Sat Jan 27 2018 l-n-s <supervillain@riseup.net> - 2.17.0-1
|
2018-01-27 18:54:03 +03:00
|
|
|
- Added certificates and default configuration files
|
|
|
|
- Merge i2pd with i2pd-systemd package
|
2018-01-30 18:03:53 +03:00
|
|
|
- Fixed package changelogs to comply with guidelines
|
2018-01-27 18:54:03 +03:00
|
|
|
|
2017-12-04 21:40:32 +03:00
|
|
|
* Mon Dec 04 2017 orignal <i2porignal@yandex.ru> - 2.17.0
|
2018-01-30 18:03:53 +03:00
|
|
|
- update to 2.17.0
|
2017-12-04 21:40:32 +03:00
|
|
|
|
2017-11-13 22:17:30 +03:00
|
|
|
* Mon Nov 13 2017 orignal <i2porignal@yandex.ru> - 2.16.0
|
2018-01-30 18:03:53 +03:00
|
|
|
- update to 2.16.0
|
2017-11-13 22:17:30 +03:00
|
|
|
|
2017-08-17 21:09:16 +03:00
|
|
|
* Thu Aug 17 2017 orignal <i2porignal@yandex.ru> - 2.15.0
|
2018-01-30 18:03:53 +03:00
|
|
|
- update to 2.15.0
|
2017-08-17 21:09:16 +03:00
|
|
|
|
2017-06-05 01:41:14 +03:00
|
|
|
* Thu Jun 01 2017 orignal <i2porignal@yandex.ru> - 2.14.0
|
2018-01-30 18:03:53 +03:00
|
|
|
- update to 2.14.0
|
2017-06-04 01:23:22 +03:00
|
|
|
|
2017-06-05 01:41:14 +03:00
|
|
|
* Thu Apr 06 2017 orignal <i2porignal@yandex.ru> - 2.13.0
|
2018-01-30 18:03:53 +03:00
|
|
|
- update to 2.13.0
|
2017-06-04 01:23:22 +03:00
|
|
|
|
2017-03-11 02:31:00 +03:00
|
|
|
* Tue Feb 14 2017 orignal <i2porignal@yandex.ru> - 2.12.0
|
2018-01-30 18:03:53 +03:00
|
|
|
- update to 2.12.0
|
2017-03-11 02:31:00 +03:00
|
|
|
|
|
|
|
* Mon Dec 19 2016 orignal <i2porignal@yandex.ru> - 2.11.0
|
2018-01-30 18:03:53 +03:00
|
|
|
- update to 2.11.0
|
2017-03-11 02:31:00 +03:00
|
|
|
|
2017-06-05 01:41:14 +03:00
|
|
|
* Thu Oct 20 2016 Anatolii Vorona <vorona.tolik@gmail.com> - 2.10.0-3
|
2016-10-20 13:18:59 +03:00
|
|
|
- add support C7
|
2016-10-20 16:49:56 +03:00
|
|
|
- move rpm-related files to contrib folder
|
2016-10-20 13:18:59 +03:00
|
|
|
|
|
|
|
* Sun Oct 16 2016 Oleg Girko <ol@infoserver.lv> - 2.10.0-1
|
|
|
|
- update to 2.10.0
|
|
|
|
|
|
|
|
* Sun Aug 14 2016 Oleg Girko <ol@infoserver.lv> - 2.9.0-1
|
|
|
|
- update to 2.9.0
|
|
|
|
|
|
|
|
* Sun Aug 07 2016 Oleg Girko <ol@infoserver.lv> - 2.8.0-2
|
|
|
|
- rename daemon subpackage to systemd
|
|
|
|
|
|
|
|
* Sat Aug 06 2016 Oleg Girko <ol@infoserver.lv> - 2.8.0-1
|
|
|
|
- update to 2.8.0
|
|
|
|
- remove wrong rpath from i2pd binary
|
|
|
|
- add daemon subpackage with systemd unit file
|
|
|
|
|
|
|
|
* Sat May 21 2016 Oleg Girko <ol@infoserver.lv> - 2.7.0-1
|
|
|
|
- update to 2.7.0
|
|
|
|
|
|
|
|
* Tue Apr 05 2016 Oleg Girko <ol@infoserver.lv> - 2.6.0-1
|
|
|
|
- update to 2.6.0
|
|
|
|
|
|
|
|
* Tue Jan 26 2016 Yaroslav Sidlovsky <zawertun@gmail.com> - 2.3.0-1
|
|
|
|
- initial package for version 2.3.0
|