2018-02-01 16:37:38 +00:00
|
|
|
%define git_hash %(git rev-parse HEAD | cut -c -7)
|
|
|
|
|
2020-05-25 19:30:18 +00:00
|
|
|
Name: i2pd-git
|
2022-02-19 22:21:11 +00:00
|
|
|
Version: 2.41.0
|
2020-05-25 19:30:18 +00:00
|
|
|
Release: git%{git_hash}%{?dist}
|
|
|
|
Summary: I2P router written in C++
|
|
|
|
Conflicts: i2pd
|
2018-02-01 16:37:38 +00:00
|
|
|
|
2020-05-25 19:30:18 +00:00
|
|
|
License: BSD
|
|
|
|
URL: https://github.com/PurpleI2P/i2pd
|
|
|
|
Source0: https://github.com/PurpleI2P/i2pd/archive/openssl/i2pd-openssl.tar.gz
|
2018-02-01 16:37:38 +00:00
|
|
|
|
2020-05-25 18:22:50 +00:00
|
|
|
%if 0%{?rhel} == 7
|
2021-08-22 20:41:36 +00:00
|
|
|
BuildRequires: cmake3
|
2018-02-01 16:37:38 +00:00
|
|
|
%else
|
2021-08-22 20:41:36 +00:00
|
|
|
BuildRequires: cmake
|
2018-02-01 16:37:38 +00:00
|
|
|
%endif
|
|
|
|
|
2020-05-25 19:30:18 +00:00
|
|
|
BuildRequires: chrpath
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: zlib-devel
|
|
|
|
BuildRequires: boost-devel
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
BuildRequires: miniupnpc-devel
|
|
|
|
BuildRequires: systemd-units
|
2018-02-01 16:37:38 +00:00
|
|
|
|
2020-05-25 19:30:18 +00:00
|
|
|
Requires: logrotate
|
|
|
|
Requires: systemd
|
|
|
|
Requires(pre): %{_sbindir}/useradd %{_sbindir}/groupadd
|
2018-02-01 16:37:38 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
C++ implementation of I2P.
|
|
|
|
|
|
|
|
%prep
|
2022-01-24 00:20:36 +00:00
|
|
|
%setup -q -n i2pd-openssl
|
2018-02-01 16:37:38 +00:00
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
cd build
|
|
|
|
%if 0%{?rhel} == 7
|
|
|
|
%cmake3 \
|
|
|
|
-DWITH_LIBRARY=OFF \
|
|
|
|
-DWITH_UPNP=ON \
|
|
|
|
-DWITH_HARDENING=ON \
|
2019-01-22 01:08:52 +00:00
|
|
|
-DBUILD_SHARED_LIBS:BOOL=OFF
|
2018-02-01 16:37:38 +00:00
|
|
|
%else
|
|
|
|
%cmake \
|
|
|
|
-DWITH_LIBRARY=OFF \
|
|
|
|
-DWITH_UPNP=ON \
|
|
|
|
-DWITH_HARDENING=ON \
|
2019-01-22 01:08:52 +00:00
|
|
|
%if 0%{?fedora} > 29
|
2019-01-21 23:33:44 +00:00
|
|
|
-DBUILD_SHARED_LIBS:BOOL=OFF \
|
2019-01-21 23:32:51 +00:00
|
|
|
.
|
2019-01-22 01:08:52 +00:00
|
|
|
%else
|
|
|
|
-DBUILD_SHARED_LIBS:BOOL=OFF
|
|
|
|
%endif
|
2018-02-01 16:37:38 +00:00
|
|
|
%endif
|
|
|
|
|
2021-08-22 19:32:03 +00:00
|
|
|
|
2022-04-30 14:03:59 +00:00
|
|
|
%if 0%{?rhel} == 9
|
|
|
|
pushd redhat-linux-build
|
|
|
|
%endif
|
|
|
|
|
2021-08-24 00:16:28 +00:00
|
|
|
%if 0%{?fedora} >= 35
|
2022-04-30 13:26:20 +00:00
|
|
|
%if 0%{?fedora} < 37
|
2021-08-22 20:41:36 +00:00
|
|
|
pushd redhat-linux-build
|
2022-04-30 13:26:20 +00:00
|
|
|
%endif
|
2021-08-22 19:32:03 +00:00
|
|
|
%else
|
2021-08-22 20:41:36 +00:00
|
|
|
%if 0%{?fedora} >= 33
|
|
|
|
pushd %{_target_platform}
|
|
|
|
%endif
|
2020-10-28 21:38:47 +00:00
|
|
|
%endif
|
|
|
|
|
2020-02-26 13:41:35 +00:00
|
|
|
%if 0%{?mageia} > 7
|
2021-08-22 20:41:36 +00:00
|
|
|
pushd build
|
2020-10-28 21:38:47 +00:00
|
|
|
%endif
|
|
|
|
|
2018-02-01 16:37:38 +00:00
|
|
|
make %{?_smp_mflags}
|
2020-10-28 21:38:47 +00:00
|
|
|
|
2022-04-30 14:03:59 +00:00
|
|
|
%if 0%{?rhel} == 9
|
|
|
|
popd
|
|
|
|
%endif
|
|
|
|
|
2020-10-28 21:38:47 +00:00
|
|
|
%if 0%{?fedora} >= 33
|
2022-04-30 13:45:53 +00:00
|
|
|
%if 0%{?fedora} < 37
|
2021-08-22 20:41:36 +00:00
|
|
|
popd
|
2020-02-26 13:41:35 +00:00
|
|
|
%endif
|
2022-04-30 13:45:53 +00:00
|
|
|
%endif
|
2018-02-01 16:37:38 +00:00
|
|
|
|
2020-10-28 21:38:47 +00:00
|
|
|
%if 0%{?mageia} > 7
|
2021-08-22 20:41:36 +00:00
|
|
|
popd
|
2020-10-28 21:38:47 +00:00
|
|
|
%endif
|
2018-02-01 16:37:38 +00:00
|
|
|
|
|
|
|
%install
|
2020-02-26 13:41:35 +00:00
|
|
|
pushd build
|
|
|
|
|
2021-08-24 00:16:28 +00:00
|
|
|
%if 0%{?fedora} >= 35
|
2022-04-30 13:26:20 +00:00
|
|
|
%if 0%{?fedora} < 37
|
2021-08-22 20:41:36 +00:00
|
|
|
pushd redhat-linux-build
|
2022-04-30 14:03:59 +00:00
|
|
|
%endif
|
2021-08-22 19:44:04 +00:00
|
|
|
%else
|
2021-08-22 20:41:36 +00:00
|
|
|
%if 0%{?fedora} >= 33
|
|
|
|
pushd %{_target_platform}
|
|
|
|
%endif
|
2020-10-28 22:03:36 +00:00
|
|
|
%endif
|
|
|
|
|
2020-10-28 22:17:07 +00:00
|
|
|
%if 0%{?mageia}
|
2021-08-22 20:41:36 +00:00
|
|
|
pushd build
|
2020-10-28 22:17:07 +00:00
|
|
|
%endif
|
|
|
|
|
2018-02-01 16:37:38 +00:00
|
|
|
chrpath -d i2pd
|
2018-11-10 03:25:51 +00:00
|
|
|
%{__install} -D -m 755 i2pd %{buildroot}%{_sbindir}/i2pd
|
2020-05-25 18:22:50 +00:00
|
|
|
%{__install} -d -m 755 %{buildroot}%{_datadir}/i2pd
|
|
|
|
%{__install} -d -m 700 %{buildroot}%{_sharedstatedir}/i2pd
|
|
|
|
%{__install} -d -m 700 %{buildroot}%{_localstatedir}/log/i2pd
|
2022-01-24 00:20:36 +00:00
|
|
|
%{__install} -D -m 644 %{_builddir}/i2pd-openssl/contrib/i2pd.conf %{buildroot}%{_sysconfdir}/i2pd/i2pd.conf
|
|
|
|
%{__install} -D -m 644 %{_builddir}/i2pd-openssl/contrib/subscriptions.txt %{buildroot}%{_sysconfdir}/i2pd/subscriptions.txt
|
|
|
|
%{__install} -D -m 644 %{_builddir}/i2pd-openssl/contrib/tunnels.conf %{buildroot}%{_sysconfdir}/i2pd/tunnels.conf
|
|
|
|
%{__install} -D -m 644 %{_builddir}/i2pd-openssl/contrib/i2pd.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/i2pd
|
|
|
|
%{__install} -D -m 644 %{_builddir}/i2pd-openssl/contrib/i2pd.service %{buildroot}%{_unitdir}/i2pd.service
|
|
|
|
%{__install} -D -m 644 %{_builddir}/i2pd-openssl/debian/i2pd.1 %{buildroot}%{_mandir}/man1/i2pd.1
|
|
|
|
%{__cp} -r %{_builddir}/i2pd-openssl/contrib/certificates/ %{buildroot}%{_datadir}/i2pd/certificates
|
|
|
|
%{__cp} -r %{_builddir}/i2pd-openssl/contrib/tunnels.d/ %{buildroot}%{_sysconfdir}/i2pd/tunnels.conf.d
|
2018-02-01 16:37:38 +00:00
|
|
|
ln -s %{_datadir}/%{name}/certificates %{buildroot}%{_sharedstatedir}/i2pd/certificates
|
|
|
|
|
|
|
|
|
|
|
|
%pre
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
%systemd_post i2pd.service
|
|
|
|
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%systemd_preun i2pd.service
|
|
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%systemd_postun_with_restart i2pd.service
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
2018-11-10 03:25:51 +00:00
|
|
|
%doc LICENSE README.md contrib/i2pd.conf contrib/subscriptions.txt contrib/tunnels.conf contrib/tunnels.d
|
2018-02-01 16:37:38 +00:00
|
|
|
%{_sbindir}/i2pd
|
2020-05-07 10:11:30 +00:00
|
|
|
%config(noreplace) %{_sysconfdir}/i2pd/*.conf
|
2020-05-25 20:01:02 +00:00
|
|
|
%config(noreplace) %{_sysconfdir}/i2pd/tunnels.conf.d/*.conf
|
2020-05-25 19:30:18 +00:00
|
|
|
%config %{_sysconfdir}/i2pd/subscriptions.txt
|
|
|
|
%doc %{_sysconfdir}/i2pd/tunnels.conf.d/README
|
|
|
|
%{_sysconfdir}/logrotate.d/i2pd
|
2018-11-10 03:25:51 +00:00
|
|
|
%{_unitdir}/i2pd.service
|
|
|
|
%{_mandir}/man1/i2pd.1*
|
2018-02-01 16:37:38 +00:00
|
|
|
%dir %attr(0700,i2pd,i2pd) %{_sharedstatedir}/i2pd
|
2018-11-10 03:25:51 +00:00
|
|
|
%dir %attr(0700,i2pd,i2pd) %{_localstatedir}/log/i2pd
|
2020-05-25 18:22:50 +00:00
|
|
|
%{_datadir}/i2pd/certificates
|
2018-02-01 16:37:38 +00:00
|
|
|
%{_sharedstatedir}/i2pd/certificates
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2022-02-20 11:29:44 +00:00
|
|
|
* Sun Feb 20 2022 r4sas <r4sas@i2pmail.org> - 2.41.0
|
2022-02-19 22:21:11 +00:00
|
|
|
- update to 2.41.0
|
2022-02-20 11:29:44 +00:00
|
|
|
- fixed build on Fedora Copr over openssl trunk code
|
2022-02-19 22:21:11 +00:00
|
|
|
|
2021-11-27 23:01:13 +00:00
|
|
|
* Mon Nov 29 2021 orignal <i2porignal@yandex.ru> - 2.40.0
|
|
|
|
- update to 2.40.0
|
|
|
|
|
2021-11-28 00:46:53 +00:00
|
|
|
* Tue Aug 24 2021 r4sas <r4sas@i2pmail.org> - 2.39.0-2
|
2021-08-24 00:16:28 +00:00
|
|
|
- changed if statements to cover fedora 35
|
|
|
|
|
2021-08-23 10:58:36 +00:00
|
|
|
* Mon Aug 23 2021 orignal <i2porignal@yandex.ru> - 2.39.0
|
|
|
|
- update to 2.39.0
|
2021-08-23 14:03:26 +00:00
|
|
|
- fixed build on fedora 36
|
2021-08-23 10:58:36 +00:00
|
|
|
|
2021-05-16 18:26:00 +00:00
|
|
|
* Mon May 17 2021 orignal <i2porignal@yandex.ru> - 2.38.0
|
|
|
|
- update to 2.38.0
|
|
|
|
|
2021-03-15 12:30:04 +00:00
|
|
|
* Mon Mar 15 2021 orignal <i2porignal@yandex.ru> - 2.37.0
|
|
|
|
- update to 2.37.0
|
|
|
|
|
2021-02-15 12:57:17 +00:00
|
|
|
* Mon Feb 15 2021 orignal <i2porignal@yandex.ru> - 2.36.0
|
|
|
|
- update to 2.36.0
|
|
|
|
|
2020-11-30 17:50:15 +00:00
|
|
|
* Mon Nov 30 2020 orignal <i2porignal@yandex.ru> - 2.35.0
|
|
|
|
- update to 2.35.0
|
|
|
|
|
2020-10-27 16:27:08 +00:00
|
|
|
* Tue Oct 27 2020 orignal <i2porignal@yandex.ru> - 2.34.0
|
|
|
|
- update to 2.34.0
|
|
|
|
|
2020-08-24 16:27:39 +00:00
|
|
|
* Mon Aug 24 2020 orignal <i2porignal@yandex.ru> - 2.33.0
|
|
|
|
- update to 2.33.0
|
|
|
|
|
2020-06-02 16:26:36 +00:00
|
|
|
* Tue Jun 02 2020 r4sas <r4sas@i2pmail.org> - 2.32.1
|
|
|
|
- update to 2.32.1
|
|
|
|
|
2020-05-25 12:43:16 +00: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 16:45:28 +00:00
|
|
|
* Thu May 7 2020 Anatolii Vorona <vorona.tolik@gmail.com> - 2.31.0-3
|
2020-05-07 10:11:30 +00:00
|
|
|
- added RPM logrotate config
|
|
|
|
|
2020-04-10 16:57:47 +00:00
|
|
|
* Fri Apr 10 2020 orignal <i2porignal@yandex.ru> - 2.31.0
|
|
|
|
- update to 2.31.0
|
|
|
|
|
2020-02-25 16:15:30 +00:00
|
|
|
* Tue Feb 25 2020 orignal <i2porignal@yandex.ru> - 2.30.0
|
|
|
|
- update to 2.30.0
|
|
|
|
|
2019-10-21 15:50:59 +00:00
|
|
|
* Mon Oct 21 2019 orignal <i2porignal@yandex.ru> - 2.29.0
|
|
|
|
- update to 2.29.0
|
|
|
|
|
2019-08-27 13:46:54 +00:00
|
|
|
* Tue Aug 27 2019 orignal <i2porignal@yandex.ru> - 2.28.0
|
|
|
|
- update to 2.28.0
|
|
|
|
|
2019-07-03 16:38:55 +00:00
|
|
|
* Wed Jul 3 2019 orignal <i2porignal@yandex.ru> - 2.27.0
|
|
|
|
- update to 2.27.0
|
|
|
|
|
2019-06-07 14:04:57 +00:00
|
|
|
* Fri Jun 7 2019 orignal <i2porignal@yandex.ru> - 2.26.0
|
|
|
|
- update to 2.26.0
|
|
|
|
|
2019-05-09 14:21:11 +00:00
|
|
|
* Thu May 9 2019 orignal <i2porignal@yandex.ru> - 2.25.0
|
|
|
|
- update to 2.25.0
|
|
|
|
|
2019-03-21 14:58:59 +00:00
|
|
|
* Thu Mar 21 2019 orignal <i2porignal@yandex.ru> - 2.24.0
|
|
|
|
- update to 2.24.0
|
|
|
|
|
2019-01-21 15:33:22 +00:00
|
|
|
* Mon Jan 21 2019 orignal <i2porignal@yandex.ru> - 2.23.0
|
|
|
|
- update to 2.23.0
|
|
|
|
|
2018-11-09 02:03:13 +00:00
|
|
|
* Fri Nov 09 2018 r4sas <r4sas@i2pmail.org> - 2.22.0
|
|
|
|
- add support of tunnelsdir option
|
|
|
|
|
2018-02-01 16:37:38 +00:00
|
|
|
* Thu Feb 01 2018 r4sas <r4sas@i2pmail.org> - 2.18.0
|
2018-06-26 17:46:01 +00:00
|
|
|
- Initial i2pd-git based on i2pd 2.18.0-1 spec
|