This repository has been archived by the owner on Aug 23, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
bugfixes, cleanups and improvements #10
Closed
Closed
Changes from 8 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
f844164
sympa 6.2.19 beta 2
xavierba 696fd25
Add changelog entry
xavierba 9abd932
Ignore test suite results on F25 and F26, earlier and later releases …
xavierba fffa167
Use %make_build and %make_install
xavierba 28644ae
Don't override PATH
xavierba c370756
Move rsyslog conf installation next to logrotate conf installation
xavierba 158c012
Remove useless ca-bundle.crt
xavierba b29bd76
Move README to doc dir
xavierba 353d936
Add note to unbundle fonts
xavierba 878a7be
Don't ship bogus smtpc.1.md
xavierba 497f4ea
Fix create_cookie to only replace the cookie config and not random co…
xavierba 45958f3
Use mktemp to create temporary cookie file in %post
xavierba 69491c4
Remove function to migrate legacy /etc/sysconfig/sympa
xavierba ecaa5cf
Remove un-necessary owner/group fixup of main and robot confs
xavierba 392f866
Don't hide intranet choices
xavierba 8992f82
Re-order %files
xavierba 5221a70
Fix creation of directory structure for overiding default configs
xavierba 447299a
data_structure.current_version needs to be owned by user and group sympa
xavierba af4808c
Replace deprecated fcgid directives with their new names
xavierba f3b6ba3
FcgidMaxProcesses should be set in /etc/httpd/conf.d/fcgid.conf if ne…
xavierba 139c03c
Rename httpd conf according to httpd version
xavierba 8a89be9
Rename README.RPM.md
xavierba 001e622
Fix typos in README.RPM.md
xavierba d65ddc7
doc: Setup MTA before DB to receive mail sent by 'sympa.pl --health_c…
xavierba File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,11 +4,11 @@ | |
%global use_systemd 0 | ||
%endif | ||
|
||
%global pre_rel b.1 | ||
%global pre_rel b.2 | ||
|
||
Name: sympa | ||
Version: @VERSION@ | ||
Release: %{?pre_rel:0.}1%{?pre_rel:.%pre_rel}@REV@%{?dist} | ||
Release: %{?pre_rel:0.}2%{?pre_rel:.%pre_rel}@REV@%{?dist} | ||
Summary: Powerful multilingual List Manager | ||
Summary(fr): Gestionnaire de listes électroniques | ||
Summary(ja): 高機能で多言語対応のメーリングリスト管理ソフトウェア | ||
|
@@ -247,8 +247,6 @@ Sympa の nginx 対応。 | |
autoreconf --install | ||
%endif | ||
|
||
PATH=/bin:/usr/bin | ||
export PATH | ||
# Give install "-p" preserving mtime to prevent unexpected update of CSS. | ||
%configure \ | ||
--enable-fhs \ | ||
|
@@ -275,7 +273,7 @@ export PATH | |
--with-aliases_file=%{_localstatedir}/lib/sympa/sympa_aliases \ | ||
--with-perl=%{_bindir}/perl \ | ||
INSTALL_DATA='install -c -p -m 644' | ||
make %{?_smp_mflags} | ||
%make_build | ||
|
||
# cancel workaround in Makefile getting previous version. | ||
rm -f previous_sympa_version | ||
|
@@ -285,14 +283,17 @@ pushd po/web_help; rm -f stamp-po; make; popd | |
|
||
|
||
%install | ||
make install DESTDIR=%{buildroot} | ||
%make_install | ||
|
||
%find_lang %{name} | ||
%find_lang web_help | ||
|
||
# Fix perm to prevent warning by rpmlint. | ||
chmod a-x %{buildroot}%{_datadir}/%{name}/bin/create_db.Sybase | ||
|
||
# Remove useless ca-bundle.crt | ||
rm %{buildroot}%{_datadir}/%{name}/default/ca-bundle.crt | ||
|
||
# Save version info. | ||
mv %{buildroot}%{_sysconfdir}/sympa/data_structure.version \ | ||
%{buildroot}%{_sysconfdir}/sympa/data_structure.current_version | ||
|
@@ -326,10 +327,6 @@ install -m 0755 %{SOURCE104} %{buildroot}%{_initrddir}/wwsympa | |
install -m 0755 %{SOURCE105} %{buildroot}%{_initrddir}/sympasoap | ||
%endif | ||
|
||
# Copy rsyslog config | ||
mkdir -p %{buildroot}%{_sysconfdir}/rsyslog.d | ||
install -m 0644 %{SOURCE106} %{buildroot}%{_sysconfdir}/rsyslog.d/sympa.conf | ||
|
||
# Copy docs. | ||
mv %{buildroot}%{_docdir}/%{name} __doc | ||
cp -p AUTHORS.md CONTRIBUTING.md NEWS.md OChangeLog ONEWS README.md __doc/ | ||
|
@@ -338,19 +335,24 @@ cp -p %{SOURCE113} __doc/README.RPM.md | |
%else | ||
cp -p %{SOURCE112} __doc/README.RPM.md | ||
%endif | ||
mv %{buildroot}%{_sysconfdir}/sympa/README __doc/ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. CONFDIR/README (etc_README in source) describes usage of CONFDIR and DEFAULTDIR. So it would be on either of these directories. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I understand the rationale for putting this in either (or both) of configdir and defaultdir, but documentation definitely belongs to docdir. Maybe I could move the file to docdir, but also symlink it from both configdir and defaultdir ? |
||
|
||
# Copy robot aliases. | ||
cp -p %{SOURCE114} %{SOURCE115} %{buildroot}%{_sysconfdir}/sympa/ | ||
chmod 644 %{buildroot}%{_sysconfdir}/sympa/aliases.sympa.* | ||
|
||
# Copy rsyslog config | ||
mkdir -p %{buildroot}%{_sysconfdir}/rsyslog.d | ||
install -m 0644 %{SOURCE106} %{buildroot}%{_sysconfdir}/rsyslog.d/sympa.conf | ||
|
||
# Create logrotate item | ||
mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d | ||
install -m 0644 %{SOURCE107} %{buildroot}%{_sysconfdir}/logrotate.d/sympa | ||
|
||
|
||
%check | ||
%if ! 0%{?fedora} | ||
#### Temporarily disabling tests, failing on F25/F26 | ||
%if 0%{?fc25}%{?fc26} | ||
#### Temporarily ignoring tests results, failing on F25 and F26 | ||
## Failed test 'file, nothing else: ok' | ||
## at t/tools_file.t line 23. | ||
# | ||
|
@@ -360,6 +362,8 @@ install -m 0644 %{SOURCE107} %{buildroot}%{_sysconfdir}/logrotate.d/sympa | |
#t/tools_file.t ........... | ||
#Dubious, test returned 2 (wstat 512, 0x200) | ||
#Failed 2/23 subtests | ||
make check || true | ||
%else | ||
make check | ||
%endif | ||
%if 0%{?do_authorcheck} | ||
|
@@ -622,7 +626,6 @@ fi | |
%{_sysconfdir}/smrsh/* | ||
%config(noreplace) %{_sysconfdir}/rsyslog.d/* | ||
%dir %attr(-,sympa,sympa) %{_sysconfdir}/sympa/ | ||
%config(noreplace,missingok) %attr(444,root,root) %{_sysconfdir}/sympa/README | ||
%config(noreplace) %attr(0640,sympa,sympa) %{_sysconfdir}/sympa/sympa.conf | ||
%config(noreplace) %{_sysconfdir}/sympa/aliases.sympa.sendmail | ||
%config(noreplace) %{_sysconfdir}/sympa/aliases.sympa.postfix | ||
|
@@ -684,6 +687,9 @@ fi | |
|
||
|
||
%changelog | ||
* Thu Sep 14 2017 Xavier Bachelot <xavier@bachelot.org> 6.2.19-0.2.b.2 | ||
- Rework spec to better comply with Fedora packaging guidelines. | ||
|
||
* Sat Aug 19 2017 IKEDA Soji <ikeda@conversion.co.jp> 6.2.19b.1-1 | ||
- Added --bindir to install sympa_smtpc under libexecdir. | ||
|
||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file is referred by the code (see Conf.pm). It would be better to propose upstream removal.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I noticed the issue and worked around it by adding a symlink.
I've filled an issue about this upstream, as you suggested.
sympa-community/sympa#116