Damian Wrobel b3dc895
Name:           mscgen
Damian Wrobel b3dc895
Version:        0.20
5ec80f5
Release:        24%{?dist}
Damian Wrobel b3dc895
Group:          Development/Tools
Damian Wrobel b3dc895
Summary:        Message Sequence Chart rendering program
Damian Wrobel b3dc895
License:        GPLv2+
Damian Wrobel b3dc895
URL:            http://www.mcternan.me.uk/mscgen/
Damian Wrobel b3dc895
Source0:        http://www.mcternan.me.uk/mscgen/software/%{name}-src-%{version}.tar.gz
Damian Wrobel b3dc895
Damian Wrobel b3dc895
# Removes unknown escape sequence '\-'
Damian Wrobel b3dc895
# Patch sent upstream.
Damian Wrobel b3dc895
# http://code.google.com/p/mscgen/issues/detail?id=72
Damian Wrobel b3dc895
Patch0:         %{name}-0.20-escape.patch
Damian Wrobel b3dc895
Damian Wrobel b3dc895
# Fixes 'ymax' variable initialization
Damian Wrobel b3dc895
# http://code.google.com/p/mscgen/issues/detail?id=73
Damian Wrobel b3dc895
Patch1:         %{name}-0.20-uninitialized-ymax.patch
Damian Wrobel b3dc895
4b54067
# Fixes language.c:464:5: error: conflicting types for 'yyparse'
4b54067
# https://code.google.com/p/mscgen/issues/detail?id=83
4b54067
Patch2:         %{name}-0.20-language.patch
Damian Wrobel b3dc895
Damian Wrobel b3dc895
%global test_with_valgrind %{?_with_valgrind:1}%{!?_with_valgrind:0}
Damian Wrobel b3dc895
Damian Wrobel b3dc895
17431dd
BuildRequires:  gcc
Damian Wrobel b3dc895
BuildRequires:  flex
Damian Wrobel b3dc895
BuildRequires:  bison
Damian Wrobel b3dc895
BuildRequires:  pkgconfig
Damian Wrobel b3dc895
BuildRequires:  gd-devel
Damian Wrobel b3dc895
BuildRequires:  freetype-devel
6758652
BuildRequires:  urw-base35-fonts
Damian Wrobel b3dc895
Damian Wrobel b3dc895
%if %{test_with_valgrind}
Damian Wrobel b3dc895
BuildRequires:  valgrind
Damian Wrobel b3dc895
%endif
Damian Wrobel b3dc895
Damian Wrobel b3dc895
# Freetype based font rendering requires some fonts to be installed.
6758652
Requires:       urw-base35-fonts
Damian Wrobel b3dc895
Damian Wrobel b3dc895
Damian Wrobel b3dc895
%description
Damian Wrobel b3dc895
Mscgen is a small program that parses Message Sequence Chart descriptions
Damian Wrobel b3dc895
and produces PNG, SVG, EPS or server side image maps (ismaps) as the output.
Damian Wrobel b3dc895
Message Sequence Charts (MSCs) are a way of representing entities and
Damian Wrobel b3dc895
interactions over some time period and are often used in combination with SDL.
Damian Wrobel b3dc895
MSCs are popular in Telecoms to specify how protocols operate although MSCs
Damian Wrobel b3dc895
need not be complicated to create or use. Mscgen aims to provide a simple text
Damian Wrobel b3dc895
language that is clear to create, edit and understand, which can also be
Damian Wrobel b3dc895
transformed into common image formats for display or printing.
Damian Wrobel b3dc895
Damian Wrobel b3dc895
Damian Wrobel b3dc895
%prep
Damian Wrobel b3dc895
%setup -q
Damian Wrobel b3dc895
%patch0 -p1 -b .escape
Damian Wrobel b3dc895
%patch1 -p1 -b .initialization
4b54067
%patch2 -p1 -b .language
Damian Wrobel b3dc895
#this ensures that they get regenerated
Damian Wrobel b3dc895
rm -f src/language.{c,h} src/lexer.c
Damian Wrobel b3dc895
Damian Wrobel b3dc895
Damian Wrobel b3dc895
%build
Damian Wrobel b3dc895
# Correct EOL.
4ee4729
sed 's/\r//' TODO >TODO.tmp && touch -r TODO TODO.tmp && mv TODO.tmp TODO
Damian Wrobel b3dc895
%configure \
Damian Wrobel b3dc895
    --with-freetype \
4ee4729
    --docdir=%{_defaultdocdir}/%{name}
Damian Wrobel b3dc895
make %{?_smp_mflags}
Damian Wrobel b3dc895
Damian Wrobel b3dc895
Damian Wrobel b3dc895
%check
Damian Wrobel b3dc895
%if %{test_with_valgrind}
Damian Wrobel b3dc895
export VALGRIND="valgrind -v --track-origins=yes --tool=memcheck"
Damian Wrobel b3dc895
%endif
Damian Wrobel b3dc895
make check
Damian Wrobel b3dc895
Damian Wrobel b3dc895
Damian Wrobel b3dc895
%install
Damian Wrobel b3dc895
make install INSTALL="install -p" DESTDIR=%{buildroot}
4ee4729
cp -p TODO %{buildroot}%{_defaultdocdir}/%{name}/
Damian Wrobel b3dc895
Damian Wrobel b3dc895
Damian Wrobel b3dc895
%files
Damian Wrobel b3dc895
# due to this entry, doc must not be used to add any other files
4ee4729
%{_defaultdocdir}/%{name}/
Damian Wrobel b3dc895
%{_bindir}/%{name}
Damian Wrobel b3dc895
%{_mandir}/man1/%{name}*
Damian Wrobel b3dc895
Damian Wrobel b3dc895
Damian Wrobel b3dc895
%changelog
5ec80f5
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.20-24
5ec80f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
5ec80f5
17431dd
* Sat Feb 24 2018 Damian Wrobel <dwrobel@ertelnet.rybnik.pl> - 0.20-23
17431dd
- Add missing BR (gcc)
17431dd
c7eadf0
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.20-22
c7eadf0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
c7eadf0
0569e07
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.20-21
0569e07
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
0569e07
cd1d39c
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.20-20
cd1d39c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
cd1d39c
d506ed0
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.20-19
d506ed0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
d506ed0
532910f
* Wed Feb 01 2017 Sandro Mani <manisandro@gmail.com> - 0.20-18
532910f
- Rebuild (libwebp)
532910f
31340f3
* Fri Jul 22 2016 Tom Callaway <spot@fedoraproject.org> - 0.20-17
31340f3
- rebuild to drop libvpx dep
31340f3
fdc51f1
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.20-16
fdc51f1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
fdc51f1
60edb98
* Tue Dec  1 2015 Tom Callaway <spot@fedoraproject.org> - 0.20-15
60edb98
- rebuild for libvpx 1.5.0
60edb98
d0270a4
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20-14
d0270a4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
d0270a4
375c966
* Mon Apr  6 2015 Tom Callaway <spot@fedoraproject.org> - 0.20-13
375c966
- rebuild against libvpx 1.4.0
375c966
cb634f3
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20-12
cb634f3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
cb634f3
4b54067
* Mon Jun 09 2014 Damian Wrobel <dwrobel@ertelnet.rybnik.pl> - 0.20-11
4b54067
- Fixes FTBFS, rhbh#1106246.
4b54067
83f9c85
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20-10
83f9c85
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
83f9c85
4ee4729
* Tue Aug 06 2013 Damian Wrobel <dwrobel@ertelnet.rybnik.pl> - 0.20-9
4ee4729
- changes for unversioned doc directory, fixes rhbz#993979,
4ee4729
- preserving timestamp during EOL conversion added.
4ee4729
5bfc1d2
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20-8
5bfc1d2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
5bfc1d2
8b10f32
* Tue Jun 11 2013 Remi Collet <rcollet@redhat.com> - 0.20-7
8b10f32
- rebuild for new GD 2.1.0
8b10f32
e66c9b5
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20-6
e66c9b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
e66c9b5
Adam Tkac 6f2a5a5
* Mon Jan 21 2013 Adam Tkac <atkac redhat com> - 0.20-5
Adam Tkac 6f2a5a5
- rebuild due to "jpeg8-ABI" feature drop
Adam Tkac 6f2a5a5
c82c18f
* Fri Dec 21 2012 Adam Tkac <atkac redhat com> - 0.20-4
c82c18f
- rebuild against new libjpeg
c82c18f
Damian Wrobel b3dc895
* Mon Aug 16 2012 Damian Wrobel <dwrobel@ertelnet.rybnik.pl> - 0.20-3
Damian Wrobel b3dc895
- use force option while removing files,
Damian Wrobel b3dc895
- install TODO file,
Damian Wrobel b3dc895
- use %%{name} macro on PatchX,
Damian Wrobel b3dc895
- preserve timestamps while installing files,
Damian Wrobel b3dc895
- add a comment about the uwr-fonts requirement,
Damian Wrobel b3dc895
- backport fix for variable initialization.
Damian Wrobel b3dc895
Damian Wrobel b3dc895
* Fri Jul 20 2012 Damian Wrobel <dwrobel@ertelnet.rybnik.pl> - 0.20-2
Damian Wrobel b3dc895
- remove superfluous spaces from the spec file,
Damian Wrobel b3dc895
- correct the Group,
Damian Wrobel b3dc895
- use consistently marcos,
Damian Wrobel b3dc895
- unknown escape sequence removal patch added,
Damian Wrobel b3dc895
- remove files which has to be regenerated,
Damian Wrobel b3dc895
- build with the free-type support,
Damian Wrobel b3dc895
- add a possibility to run tests under valgrind.
Damian Wrobel b3dc895
Damian Wrobel b3dc895
* Mon Jan 3 2011 Michael McTernan <Michael.McTernan.2001@cs.bris.ac.uk> 0.19-2
Damian Wrobel b3dc895
- Add comment in spec file warning of doc use.
Damian Wrobel b3dc895
Damian Wrobel b3dc895
* Wed Sep 15 2010 Michael McTernan <Michael.McTernan.2001@cs.bris.ac.uk> 0.19-1
Damian Wrobel b3dc895
- Version bump following upstream release.
Damian Wrobel b3dc895
Damian Wrobel b3dc895
* Tue Sep 07 2010 Michael McTernan <Michael.McTernan.2001@cs.bris.ac.uk> 0.18-3
Damian Wrobel b3dc895
- Further Fedora packaging fixes to remove duplicate doc (bug #630754#c4).
Damian Wrobel b3dc895
Damian Wrobel b3dc895
* Tue Sep 07 2010 Michael McTernan <Michael.McTernan.2001@cs.bris.ac.uk> 0.18-2
Damian Wrobel b3dc895
- Fixes from Fedora packaging review (bug #630754).
Damian Wrobel b3dc895
Damian Wrobel b3dc895
* Thu Aug 25 2010 Michael McTernan <Michael.McTernan.2001@cs.bris.ac.uk> 0.18-1
Damian Wrobel b3dc895
- Initial version.