Compare commits

..

46 commits

Author SHA1 Message Date
Fedora Release Engineering
8207b77168 Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild 2026-07-15 21:49:49 +00:00
Miroslav Suchý
861bf00847 Update dist-git to 1.20-1 2026-07-07 12:43:51 +02:00
Pavel Raiskup
a99d965050 Update dist-git to 1.19-1 2026-02-13 10:44:55 +01:00
Fedora Release Engineering
420f5b354e Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild 2026-01-16 10:02:03 +00:00
Fedora Release Engineering
7adbe05035 Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild 2026-01-16 06:01:14 +00:00
Fedora Release Engineering
0f86dd65aa Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-23 19:19:48 +00:00
337ca362b5 Add sysusers.d config file to allow rpm to create users/groups automatically
See https://fedoraproject.org/wiki/Changes/RPMSuportForSystemdSysusers.
2025-02-11 14:36:25 +01:00
Fedora Release Engineering
766a8a42b5 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-16 15:51:13 +00:00
Pavel Raiskup
0bdcf24ac3 Update dist-git to 1.18-1 2024-09-27 21:28:10 +02:00
Pavel Raiskup
9935cd6d3b Merge branch 'main' into epel8 2024-09-27 21:22:56 +02:00
Pavel Raiskup
a2512af8cb Cleanup .gitignore 2024-09-27 21:19:45 +02:00
Pavel Raiskup
eb755f5368 Update dist-git to 1.18-1 2024-09-27 21:19:04 +02:00
Fedora Release Engineering
a8f24dd11f Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-17 21:03:49 +00:00
Fedora Release Engineering
9dead15c66 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-24 09:31:20 +00:00
Fedora Release Engineering
4e34d01487 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-19 17:14:36 +00:00
Miroslav Suchý
9c44231b56 setup packit pull-from-upstream automation 2023-10-05 12:03:13 +02:00
Fedora Release Engineering
e358939573 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-19 17:32:52 +00:00
Fedora Release Engineering
5b688911db Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-19 01:28:55 +00:00
Miroslav Suchý
71747fb54d Update dist-git to 1.17-1 2023-01-04 18:20:21 +01:00
Fedora Release Engineering
2a8a3bfed5 Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-21 00:32:33 +00:00
Troy Dawson
f01e1d10bc Remove package.cfg; Part of epel8-playground decommission 2022-01-28 08:20:31 -08:00
Fedora Release Engineering
6b2ffc6645 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-20 00:44:24 +00:00
Fedora Release Engineering
1646d18dbb - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-21 20:51:08 +00:00
Fedora Release Engineering
23bd6418fc - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-26 03:28:25 +00:00
clime
8349444c6f Merge branch 'master' into epel8 2020-10-05 15:32:04 +02:00
clime
7f2daee1fb back to release 1.16 2020-10-05 15:22:23 +02:00
clime
1eadbf42ac add back package.cfg 2020-10-05 07:01:28 +02:00
clime
3b820abcff Merge branch 'master' into epel8 2020-10-05 06:49:27 +02:00
clime
1bf2557b69 bump release because of koji error **
** Dependency tokens must begin with alpha-numeric, '_' or '/': Requires:
(dist-git-selinux if selinux-policy-targeted)" means (when I want to

build a package in koji)
2020-10-05 06:33:59 +02:00
clime
8a135c4c47 - always require selinux-policy-targeted right now 2020-10-05 06:13:45 +02:00
clime
2be82267d6 new release 1.16 2020-10-05 06:00:47 +02:00
Troy Dawson
9005717fd7 remove package.cfg per new epel-playground policy 2020-09-24 16:56:15 +00:00
Fedora Release Engineering
a5f5c8933a - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-27 15:27:21 +00:00
clime
9632421744 disable tests as they are not executed properly for epel8 2020-06-12 00:48:20 +02:00
clime
4dca317ba4 Merge branch 'master' into epel8 2020-06-12 00:29:49 +02:00
clime
cbeee0c927 new release 1.15 2020-06-12 00:15:39 +02:00
clime
21ea30c393 Merge branch 'master' into epel8 2020-05-21 11:24:30 +02:00
clime
7321978e08 version bump 2020-05-21 11:21:16 +02:00
clime
abfcd0cd4b Merge branch 'master' into epel8 - new version 1.13 2020-05-21 09:09:09 +02:00
clime
e7d57666ed new release 1.13 2020-05-21 09:06:01 +02:00
clime
d1b92f1e6a remove rebuild changelog entries and fix release 2020-03-19 12:05:47 +01:00
clime
3e433de97c Merge branch 'master' into epel8 2020-03-19 12:01:31 +01:00
Igor Raits
7e802847cb "Adding package.cfg file" 2020-03-19 10:44:24 +01:00
Fedora Release Engineering
ea465ac89c - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-01-28 15:55:38 +00:00
Fedora Release Engineering
855c7080c1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-07-24 22:04:16 +00:00
Miroslav Suchý
af765f612a new release 1.12 2019-05-28 17:01:29 +02:00
4 changed files with 119 additions and 97 deletions

15
.gitignore vendored
View file

@ -1,14 +1 @@
/dist-git-0.10.tar.gz
/dist-git-0.11.tar.gz
/dist-git-1.0.tar.gz
/dist-git-1.1.tar.gz
/dist-git-1.2.tar.gz
/dist-git-1.3.tar.gz
/dist-git-1.4.tar.gz
/dist-git-1.5.tar.gz
/dist-git-1.6.tar.gz
/dist-git-1.7.tar.gz
/dist-git-1.8.tar.gz
/dist-git-1.9.tar.gz
/dist-git-1.10.tar.gz
/dist-git-1.11.tar.gz
/dist-git-*.tar.gz

View file

@ -3,12 +3,12 @@
%global installdir /var/lib/dist-git
Name: dist-git
Version: 1.11
Release: 1%{?dist}
Version: 1.20
Release: 2%{?dist}
Summary: Package source version control system
# upload.cgi uses GPLv1
License: MIT and GPLv1
License: MIT AND GPL-1.0-only
URL: https://github.com/release-engineering/dist-git
# Source is created by
# git clone https://github.com/release-engineering/dist-git.git
@ -21,27 +21,36 @@ BuildRequires: systemd
Requires: httpd
Requires: perl(Sys::Syslog)
Requires: dist-git-selinux
Requires: (dist-git-selinux if selinux-policy-targeted)
Requires: git
Requires: git-daemon
Requires: mod_ssl
Requires: crudini
Requires: moreutils
%if 0%{?rhel} && 0%{?rhel} < 10
Requires(pre): shadow-utils
%if 0%{?rhel} && 0%{?rhel} < 8
Requires: python-requests
Requires: python-configparser
Requires: python-grokmirror
Requires: fedmsg
%else
Requires: python3-requests
Recommends: python3-grokmirror
Requires: python3-fedmsg
%endif
Requires: python3-requests
Recommends: python3-grokmirror
Suggests: python3-fedmsg
Suggests: fedora-messaging
BuildRequires: python3-devel
BuildRequires: python3-pytest
BuildRequires: python3-requests
# this should be Requires but see https://bugzilla.redhat.com/show_bug.cgi?id=1833810
Recommends: moreutils
%if 0%{?fedora} && 0%{?fedora} >= 41
# The `cgi` module was removed from the Python 3.13 standard library
BuildRequires: python3-legacy-cgi
Requires: python3-legacy-cgi
%endif
%description
Dist Git is a remote Git repository specifically designed to hold RPM
DistGit is a Git repository specifically designed to hold RPM
package sources.
@ -49,16 +58,11 @@ package sources.
Summary: SELinux support for dist-git
BuildRequires: checkpolicy
BuildRequires: policycoreutils
BuildRequires: selinux-policy-devel
BuildRequires: hardlink
Requires: %name = %version-%release
%if "%{_selinux_policy_version}" != ""
Requires: selinux-policy >= %{_selinux_policy_version}
%endif
Requires(post): /usr/sbin/semodule, /sbin/restorecon
Requires(postun): /usr/sbin/semodule, /sbin/restorecon
BuildRequires: selinux-policy-devel
%{?selinux_requires}
%description selinux
@ -87,12 +91,17 @@ cd -
%pre
%if 0%{?rhel} && 0%{?rhel} < 10
# ------------------------------------------------------------------------------
# Users and Groups
# ------------------------------------------------------------------------------
getent group packager > /dev/null || \
groupadd -r packager
exit 0
%endif
%check
%pytest -vv .
%install
@ -114,6 +123,8 @@ cp -a configs/httpd/dist-git.conf %{buildroot}%{_sysconfdir}/httpd/conf.d/
cp -a configs/httpd/dist-git/* %{buildroot}%{_sysconfdir}/httpd/conf.d/dist-git/
cp -a configs/systemd/* %{buildroot}%{_unitdir}/
install -m0644 -D configs/sysusers.d/dist-git.conf %{buildroot}%{_sysusersdir}/dist-git.conf
# ------------------------------------------------------------------------------
# /var/lib/ ...... dynamic persistent files
# ------------------------------------------------------------------------------
@ -137,6 +148,8 @@ install -d %{buildroot}%{_bindir}
ln -s %{_datadir}/dist-git/setup_git_package %{buildroot}%{_bindir}/setup_git_package
ln -s %{_datadir}/dist-git/mkbranch %{buildroot}%{_bindir}/mkbranch
ln -s %{_datadir}/dist-git/mkbranch_branching %{buildroot}%{_bindir}/mkbranch_branching
ln -s %{_datadir}/dist-git/remove_unused_sources %{buildroot}%{_bindir}/remove_unused_sources
mv %{buildroot}%{_datadir}/dist-git/dist-git-gc %{buildroot}%{_bindir}/dist-git-gc
# ------------------------------------------------------------------------------
# SELinux
@ -150,7 +163,7 @@ do
done
cd -
/usr/sbin/hardlink -cv %{buildroot}%{_datadir}/selinux
hardlink -cv %{buildroot}%{_datadir}/selinux
%post selinux
for selinuxvariant in %{selinux_variants}
@ -198,6 +211,8 @@ fi
%{_unitdir}/dist-git@.service
%{_unitdir}/dist-git.socket
%{_unitdir}/dist-git-gc.service
%{_unitdir}/dist-git-gc.timer
# ------------------------------------------------------------------------------
# /var/lib/ ...... dynamic persistent files
@ -219,14 +234,70 @@ fi
%dir %{_datadir}/dist-git
%attr (775, -, -) %{_datadir}/dist-git/*
%{_bindir}/dist-git-gc
# TODO: move _datadir executables to _libexecdir, and drop these symlinks
%{_bindir}/mkbranch
%{_bindir}/mkbranch_branching
%{_bindir}/remove_unused_sources
%{_bindir}/setup_git_package
%{_sysusersdir}/dist-git.conf
%files selinux
%doc selinux/*
%{_datadir}/selinux/*/%{modulename}.pp
%{_bindir}/*
%changelog
* Wed Jul 15 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1.20-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
* Tue Jul 07 2026 Miroslav Suchý <msuchy@redhat.com> 1.20-1
- Fix tests for Python 3.15: replace removed CGIHTTPRequestHandler
* Fri Feb 13 2026 Pavel Raiskup <pavel@raiskup.cz> 1.19-1
- Avoid using parameterized and nose
- Add sysusers.d config file to allow rpm to create users/groups automatically
* Fri Sep 27 2024 Pavel Raiskup <praiskup@redhat.com> 1.18-1
- replace test on _selinux_policy_version by macro that does it all
- handle situation when _selinux_policy_version is not defined
- silence pylint
- remove rhel7 specific code
- Move %%_bindir symlinks out from dist-git-selinux
- Depend on python3-legacy-cgi for F41+
- licensing: update the project's COPYING file
- dist-git: move the code into sub-directory
* Wed Jan 04 2023 Miroslav Suchý <msuchy@redhat.com> 1.17-1
- use spdx license
- use pytest instead of nose test
* Mon Oct 5 2020 clime <clime@fedoraproject.com> - 1.16-1
- fixed exceptions for fedora-messaging
- fixed topic for fedora-messaging (to git.lookaside.new)
- spec tweak not to require distgit-selinux in containers
- only Suggests fedmsg
- garbage collection (git gc) script and systemd timer
for its periodic run added
* Fri Jun 12 2020 clime <clime@fedoraproject.com> - 1.15-1
- added support for fedora-messaging
* Thu May 21 2020 clime <clime@fedoraproject.com> - 1.14-1
- disable unit tests temporarily as they do not pass
with network disabled during build
* Thu May 21 2020 clime <clime@fedoraproject.com> - 1.13-1
- fedmsg made an optional (recommnended) dependency
- slight refactoring of upload.cgi script
- tests added and documented
* Tue May 28 2019 Miroslav Suchy <msuchy@redhat.com> - 1.12-1
- remove old changelog entries
- do not specify full path for hardlink [RHBZ#1714637]
- add script for removing unused source tarballs in lookaside cache
* Tue Apr 30 2019 clime <clime@redhat.com> 1.11-1
- remove python3-configparser require
- move scripts to bindir
@ -276,63 +347,3 @@ fi
* Wed May 03 2017 clime <clime@redhat.com> 1.1-1
- fix default config value for email
- fix name/email switch
* Mon Apr 10 2017 clime <clime@redhat.com> 1.0-1
- big redo of the package
- gitolite dropped from the package (but can be installed additionally)
- pkgdb integration dropped
- upload.cgi updated from FedoraInfra state
- git repos are stored one level higher in fs hiearchy (default: /var/lib/dist-git/git/)
- dist-git.conf completely new
- updated setup_git_package, mkbranch, mkbranch_branching
- updated SELinux policy
- configurable paths to cache dir and git repos
* Wed Aug 05 2015 Adam Samalik <asamalik@redhat.com> 0.13-1
- optional cgit_pkg_list.sh parameter (asamalik@redhat.com)
- change mv to cp + rm (asamalik@redhat.com)
- update config to not be Fedora specific (asamalik@redhat.com)
- Change: lookaside dir perms + cgit_pkg_list.sh (asamalik@redhat.com)
* Mon Jul 20 2015 Adam Samalik <asamalik@redhat.com> 0.12-1
- config update (asamalik@redhat.com)
- Upload files to new and old paths + remove email (asamalik@redhat.com)
* Tue May 05 2015 Adam Samalik <asamalik@redhat.com> 0.11-1
- SELinux subpackage
* Mon Apr 27 2015 Adam Samalik <asamalik@redhat.com> 0.10-1
- perl require and files update (asamalik@redhat.com)
* Thu Apr 23 2015 Adam Samalik <asamalik@redhat.com> 0.9-1
- update hook update (asamalik@redhat.com)
* Thu Apr 23 2015 Adam Samalik <asamalik@redhat.com> 0.8-1
- review update (asamalik@redhat.com)
* Wed Apr 22 2015 Adam Samalik <asamalik@redhat.com> 0.7-1
- git hooks permissions (asamalik@redhat.com)
- noreplace configs (asamalik@redhat.com)
- fixes after rpmlint (asamalik@redhat.com)
* Wed Apr 22 2015 Adam Samalik <asamalik@redhat.com> 0.6-1
- license + description (asamalik@redhat.com)
- cron files fix (asamalik@redhat.com)
* Wed Apr 15 2015 Adam Samalik <asamalik@redhat.com> 0.5-1
- git hook: update-block-push-origin (asamalik@redhat.com)
- lookaside-upload config comments (asamalik@redhat.com)
- gen-acls user fix (asamalik@redhat.com)
- ssl httpd configs as examples (asamalik@redhat.com)
* Fri Apr 10 2015 Adam Samalik <asamalik@redhat.com> 0.4-1
- spec and config fix
- systemd services
* Tue Mar 31 2015 Adam Samalik <asamalik@redhat.com> 0.3-1
- alpha package (asamalik@redhat.com)
* Mon Mar 30 2015 Adam Samalik <asamalik@redhat.com> 0.2-1
- new package built with tito

24
packit.yaml Normal file
View file

@ -0,0 +1,24 @@
upstream_project_url: https://github.com/release-engineering/dist-git
upstream_tag_template: dist-git-{version}-1
issue_repository: https://github.com/release-engineering/dist-git
copy_upstream_release_description: false
jobs:
- job: pull_from_upstream
trigger: release
dist_git_branches:
- rawhide
- epel9
- job: koji_build
trigger: commit
allowed_committers: ['packit']
dist_git_branches:
- fedora-all
- epel9
- job: bodhi_update
trigger: commit
dist_git_branches:
- fedora-all
- epel9

View file

@ -1 +1 @@
SHA512 (dist-git-1.11.tar.gz) = 7aacb6a7bbb2940a2381486e22ed7b5cb201915c0ca2ecc7d8f86350239bcb2d9f8b9c920c75c55b73e350d855d2a4c8417bd9403f726520136e73cf4f2946b8
SHA512 (dist-git-1.20.tar.gz) = f68aa733a2d0e0faa8973ced5260a1c5b0f6892c5ebfca977ac17ca3bfbda33225d866bb1c16abe761452d17594399a75815a49f5d941dd2e0c5404a69a1f3be