4823b45
%global opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
1cb60b2
1cb60b2
Name:           coccinelle
35ae4db
Version:        1.1.0
4587f2b
Release:        5%{?dist}
1cb60b2
Summary:        Semantic patching for Linux (spatch)
1cb60b2
1cb60b2
License:        GPLv2
1cb60b2
cd120d0
URL:            http://coccinelle.lip6.fr/
35ae4db
Source0:        https://coccinelle.gitlabpages.inria.fr/website/distrib/coccinelle-%{version}.tar.gz
ebd3f9a
f376fc8
# Used for running Python tests.
f376fc8
Source1:        test.c
f376fc8
Source2:        testpy.cocci
f376fc8
538e192
# Upstream patch to fix OCaml 4.12 issues.
538e192
Patch1:         0001-Update-stdcompat-for-OCaml-4.12.patch
57aeeb0
eba9ba9
BuildRequires:  git
dbcd596
BuildRequires:  autoconf
dbcd596
BuildRequires:  automake
1cb60b2
BuildRequires:  ocaml >= 3.10.0
1cb60b2
BuildRequires:  ocaml-findlib-devel
1cb60b2
BuildRequires:  ocaml-ocamldoc
5bd24d8
# These are probably bundled.  Reenable them when camlp4 is working.
5bd24d8
#BuildRequires:  ocaml-sexplib-devel
d4677d4
BuildRequires:  ocaml-pcre-devel
ad45935
BuildRequires:  ocaml-extlib-devel
9605960
BuildRequires:  ocaml-menhir
b8cf8b3
BuildRequires:  ocaml-num-devel
ff7e078
BuildRequires:  latexmk
ff7e078
BuildRequires:  /usr/bin/pdflatex
6134ef7
BuildRequires:  texlive-boxedminipage
6134ef7
BuildRequires:  texlive-comment
6134ef7
BuildRequires:  texlive-endnotes
6134ef7
BuildRequires:  texlive-ifsym
6134ef7
BuildRequires:  texlive-listings
6134ef7
BuildRequires:  texlive-moreverb
6134ef7
BuildRequires:  texlive-multirow
6134ef7
BuildRequires:  texlive-preprint
6134ef7
BuildRequires:  texlive-subfigure
6134ef7
BuildRequires:  texlive-wrapfig
6134ef7
BuildRequires:  texlive-xypic
ff7e078
BuildRequires:  hevea
af43c9c
BuildRequires:  python3-devel
1cb60b2
BuildRequires:  chrpath
dbcd596
BuildRequires:  bash-completion
b4716ad
BuildRequires: make
1cb60b2
c0d5bb7
# This stops the automatic dependency generator adding some bogus
c0d5bb7
# OCaml dependencies.  Unfortunately we have to keep adding modules to
c0d5bb7
# this list every time there is some change in coccinelle.  There
c0d5bb7
# should be a better way, but I don't know what.
859a85c
%{lua:
859a85c
  modules = {
859a85c
    'ANSITerminal',
859a85c
    'Ast0_cocci',
859a85c
    'Ast_c',
859a85c
    'Ast_cocci',
859a85c
    'Bytearray',
859a85c
    'Commands',
859a85c
    'Common',
859a85c
    'Config',
859a85c
    'Control_flow_c',
859a85c
    'Cpp_token_c',
859a85c
    'Danger',
859a85c
    'Data',
859a85c
    'Dumper',
859a85c
    'Exposed_modules',
859a85c
    'Externalanalysis',
859a85c
    'Flag',
859a85c
    'Flag_parsing_cocci',
859a85c
    'Get_constants2',
859a85c
    'Includes',
538e192
    'Includes_cache',
859a85c
    'Iteration',
859a85c
    'Lexer_c',
859a85c
    'Lexer_parser',
859a85c
    'Lib_parsing_c',
859a85c
    'Mapb',
859a85c
    'Oassoc',
859a85c
    'Oassoc_buffer',
859a85c
    'Oassocb',
859a85c
    'Oassoch',
859a85c
    'Objet',
859a85c
    'Ocollection',
859a85c
    'Ograph2way',
859a85c
    'Ograph_extended',
859a85c
    'Oset',
859a85c
    'Osetb',
859a85c
    'Oseti',
859a85c
    'Parmap_utils',
859a85c
    'Parse_c',
859a85c
    'Parser_c',
859a85c
    'Parsing_consistency_c',
859a85c
    'Parsing_hacks',
859a85c
    'Parsing_recovery_c',
859a85c
    'Parsing_stat',
859a85c
    'Pretty_print_c',
859a85c
    'Regexp',
859a85c
    'Regexp_pcre',
859a85c
    'Semantic_c',
859a85c
    'Setcore',
859a85c
    'SetPt',
859a85c
    'Setb',
859a85c
    'Seti',
859a85c
    'Sexplib',
859a85c
    'Stdcompat',
859a85c
    'Stdcompat__init',
859a85c
    'Stdcompat__stdlib_s',
859a85c
    'Token_annot',
859a85c
    'Token_c',
859a85c
    'Token_helpers',
859a85c
    'Token_views_c',
859a85c
    'Type_annoter_c',
859a85c
    'Type_cocci',
859a85c
    'Visitor_ast',
859a85c
    'Visitor_c',
859a85c
  }
859a85c
  local arg = "__ocaml_requires_opts"
859a85c
  for i, m in ipairs(modules) do
859a85c
    arg = arg .. " -i " .. m .. " -x " .. m
859a85c
  end
859a85c
  rpm.define(arg)
859a85c
}
ae2fb06
ebd3f9a
# RHBZ#725415.
ebd3f9a
Requires:       ocaml-findlib
ebd3f9a
e23234c
# Bundled libraries.
e23234c
#
e23234c
# We could unbundle both of these, but it would require packaging them
e23234c
# in Fedora.  I don't know which version of the library is included.
e23234c
Provides:       bundled(ocaml-pycaml)
e23234c
Provides:       bundled(ocaml-parmap)
e23234c
1cb60b2
1cb60b2
%description
1cb60b2
Coccinelle is a tool to utilize semantic patches for manipulating C
1cb60b2
code.  It was originally designed to ease maintenance of device
1cb60b2
drivers in the Linux kernel.
1cb60b2
1cb60b2
dbcd596
%package bash-completion
dbcd596
Summary:        Bash tab-completion for %{name}
dbcd596
BuildArch:      noarch
dbcd596
Requires:       bash-completion > 2.0
dbcd596
Requires:       %{name} = %{version}-%{release}
dbcd596
dbcd596
dbcd596
%description bash-completion
dbcd596
Install this package if you want intelligent bash tab-completion
dbcd596
for %{name}.
dbcd596
dbcd596
1cb60b2
%package doc
1cb60b2
Summary:        Documentation for %{name}
1cb60b2
Requires:       %{name} = %{version}-%{release}
1cb60b2
1cb60b2
1cb60b2
%description doc
1cb60b2
The %{name}-doc package contains documentation for %{name}.
1cb60b2
1cb60b2
1cb60b2
%package examples
1cb60b2
Summary:        Examples for %{name}
1cb60b2
Requires:       %{name} = %{version}-%{release}
1cb60b2
1cb60b2
1cb60b2
%description examples
1cb60b2
The %{name}-examples package contains examples for %{name}.
1cb60b2
1cb60b2
1cb60b2
1cb60b2
%prep
35ae4db
%autosetup -n %{name}-%{version} -S git
ebd3f9a
7dc49e2
# Replace /usr/bin/env shebang with /usr/bin/python3
7dc49e2
sed -i '1s_^#!/usr/bin/env python$_#!/usr/bin/python3_' tools/pycocci
7dc49e2
1cb60b2
# Remove .cvsignore files.
1cb60b2
find -name .cvsignore -delete
1cb60b2
1cb60b2
# Convert a few files to UTF-8 encoding.
1cb60b2
for f in demos/demo_rule9/sym53c8xx.res demos/demo_rule9/sym53c8xx.c; do
1cb60b2
  mv $f $f.orig
1cb60b2
  iconv -f iso-8859-1 -t utf-8 < $f.orig > $f
1cb60b2
  rm $f.orig
1cb60b2
done
1cb60b2
af43c9c
# replace tabs with spaces
af43c9c
find . -iname '*.py' | xargs -I {} sh -exc 'expand -t8 {} > tempfile && mv tempfile {}'
af43c9c
f7ce04a
# Properly rebuild Menhir generated files.
f7ce04a
rm -f parsing_cocci/parser_cocci_menhir.ml parsing_cocci/parser_cocci_menhir.mli
dbcd596
1cb60b2
1cb60b2
%build
abfb0b2
autoreconf -i
031cc22
./autogen
e23234c
4a06a66
%configure \
4a06a66
    --with-python=%{_bindir}/python3 \
4a06a66
    --with-menhir=%{_bindir}/menhir
f7ce04a
1cb60b2
%{__sed} -i \
1cb60b2
  -e 's,LIBDIR=.*,LIBDIR=%{_libdir},' \
1cb60b2
  -e 's,MANDIR=.*,MANDIR=%{_mandir},' \
798f465
  -e 's,SHAREDIR=.*,SHAREDIR=%{_libdir}/%{name},' \
e23234c
  -e 's,DYNLINKDIR=.*,DYNLINKDIR=%{_libdir}/ocaml,' \
f7ce04a
  -e 's,BASH_COMPLETION_DIR=.*,BASH_COMPLETION_DIR=%{_datadir}/bash-completion/completions,' \
1cb60b2
  Makefile.config
1cb60b2
973ff7f
# Pass -g option everywhere.
2ed1adc
echo '
973ff7f
EXTRA_OCAML_FLAGS = -g
2ed1adc
EXTRACFLAGS = $(EXTRA_OCAML_FLAGS)
2ed1adc
' > Makefile.local
2ed1adc
1cb60b2
%if !%opt
031cc22
target=all-dev
1cb60b2
%else
031cc22
target=all-release
1cb60b2
%endif
1cb60b2
6134ef7
# NOTE: Do not use smp_mflags!  It breaks the build.
6134ef7
unset MAKEFLAGS
6134ef7
6134ef7
make $target EXTLIBDIR=`ocamlc -where`/extlib
1cb60b2
1cb60b2
%install
04b7ea4
mkdir -p $RPM_BUILD_ROOT%{_libdir}/python/coccilib
1cb60b2
make DESTDIR=$RPM_BUILD_ROOT install
1cb60b2
798f465
# Remove these (they are just wrapper scripts).
c0d5bb7
rm -f $RPM_BUILD_ROOT%{_bindir}/spatch.byte
c0d5bb7
rm -f $RPM_BUILD_ROOT%{_bindir}/spatch.opt
c0d5bb7
c0d5bb7
# Move the libdir stuff into a subdirectory.
c0d5bb7
pushd $RPM_BUILD_ROOT%{_libdir}
c0d5bb7
mkdir coccinelle
e1ed487
mkdir coccinelle/ocaml
e1ed487
for f in standard.h standard.iso spatch spatch.byte spatch.opt ocaml/*.cmi; do
c0d5bb7
  if [ -f $f ]; then
c0d5bb7
    mv $f coccinelle/$f
c0d5bb7
  fi
c0d5bb7
done
c0d5bb7
popd
1cb60b2
c0d5bb7
# Move Python libraries to python sitelib directory.
af43c9c
mkdir -p $RPM_BUILD_ROOT%{python3_sitelib}
c0d5bb7
mv $RPM_BUILD_ROOT%{_libdir}/python/coccilib \
af43c9c
  $RPM_BUILD_ROOT%{python3_sitelib}
1cb60b2
c0d5bb7
rmdir $RPM_BUILD_ROOT%{_libdir}/python
c0d5bb7
c0d5bb7
# Move OCaml libraries.
c0d5bb7
pushd $RPM_BUILD_ROOT%{_libdir}
c0d5bb7
mkdir ocaml/stublibs
c55916f
mv dllpyml_stubs.so ocaml/stublibs
2a1be0c
popd
6d4d859
031cc22
mv $RPM_BUILD_ROOT%{_bindir}/spatch $RPM_BUILD_ROOT%{_libdir}/coccinelle
dbcd596
031cc22
cp tools/pycocci $RPM_BUILD_ROOT%{_bindir}/
031cc22
031cc22
# wrapper script, sets up env variables
031cc22
cp scripts/spatch.sh $RPM_BUILD_ROOT%{_bindir}/spatch
031cc22
chmod a+x $RPM_BUILD_ROOT%{_bindir}/spatch
6134ef7
1cb60b2
1cb60b2
%check
f376fc8
# Run the tests using the non-script version of spatch so that these
f376fc8
# environment variables have effect, since spatch.sh (installed as
f376fc8
# %%{_bindir}/spatch) overwrites them.
798f465
export COCCINELLE_HOME=$RPM_BUILD_ROOT%{_libdir}/coccinelle
f376fc8
spatch=$COCCINELLE_HOME/spatch
ad45935
export LD_LIBRARY_PATH=.
ace0b3b
export PYTHONPATH=$RPM_BUILD_ROOT%{python3_sitelib}:$PYTHONPATH
f376fc8
ad45935
# Run --help to check the command works in general.
f376fc8
$spatch --help
ad45935
031cc22
# run the test recommended by the README
f376fc8
$spatch -sp_file demos/simple.cocci demos/simple.c
f376fc8
f376fc8
# test python support is working
f376fc8
# on previously broken builds, spatch exits with 255
f376fc8
$spatch --sp-file %{SOURCE2} %{SOURCE1}
1cb60b2
1cb60b2
1cb60b2
%files
af43c9c
%license license.txt copyright.txt
af43c9c
%doc authors.txt bugs.txt changes.txt
af43c9c
%doc credits.txt install.txt readme.txt
c0d5bb7
%{_bindir}/pycocci
1cb60b2
%{_bindir}/spatch
031cc22
%{_bindir}/spgen
798f465
%{_libdir}/%{name}/
ebd3f9a
%{_mandir}/man1/*.1*
ebd3f9a
%{_mandir}/man3/*.3*
af43c9c
%{python3_sitelib}/coccilib/
c0d5bb7
%{_libdir}/ocaml/stublibs/*.so
dbcd596
%{_libdir}/ocaml/*.cmx
1cb60b2
%if !%opt
1cb60b2
%config(noreplace) /etc/prelink.conf.d/%{name}.conf
1cb60b2
%endif
1cb60b2
1cb60b2
dbcd596
%files bash-completion
dbcd596
%license license.txt copyright.txt
dbcd596
%dir %{_datadir}/bash-completion/completions
dbcd596
%{_datadir}/bash-completion/completions/spatch
dbcd596
dbcd596
1cb60b2
%files doc
1cb60b2
%doc docs
1cb60b2
1cb60b2
1cb60b2
%files examples
1cb60b2
%doc demos
1cb60b2
1cb60b2
1cb60b2
%changelog
4587f2b
* Tue Jul 27 2021 Richard W.M. Jones <rjones@redhat.com> - 1.1.0-5
4587f2b
- Rebuild for changed ocamlx(Dynlink)
4587f2b
d5fa149
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-4
d5fa149
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
d5fa149
a58315a
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.1.0-3
a58315a
- Rebuilt for Python 3.10
a58315a
538e192
* Tue Mar  2 2021 Richard W.M. Jones <rjones@redhat.com> - 1.1.0-2
35ae4db
- New upstream version 1.1.0.
538e192
- Add patch to fix OCaml 4.12 issues.
538e192
- Fix unwanted dependency (RHBZ#1934137).
35ae4db
9af25ca
* Tue Mar  2 11:16:25 GMT 2021 Richard W.M. Jones <rjones@redhat.com> - 1.0.9-0.18.gitd0fd4c7d
9af25ca
- OCaml 4.12.0 build
9af25ca
66245fe
* Tue Feb  2 2021 Richard W.M. Jones <rjones@redhat.com> - 1.0.9-0.17.gitd0fd4c7d
66245fe
- Bump and rebuild for updated ocaml Dynlink dependency.
66245fe
6938880
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.9-0.16.gitd0fd4c7d
6938880
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
6938880
57aeeb0
* Tue Nov 10 2020 Richard W.M. Jones <rjones@redhat.com> - 1.0.9-0.15.gitd0fd4c7d
57aeeb0
- Fix for Python 3.10 (RHBZ#1896393).
57aeeb0
f3d5c60
* Tue Sep 01 2020 Richard W.M. Jones <rjones@redhat.com> - 1.0.9-0.14.gitd0fd4c7d
f3d5c60
- OCaml 4.11.1 rebuild
f3d5c60
142f025
* Sat Aug 22 2020 Richard W.M. Jones <rjones@redhat.com> - 1.0.9-0.13.gitd0fd4c7d
142f025
- OCaml 4.11.0 rebuild
142f025
c47c2ce
* Mon Aug 03 2020 Richard W.M. Jones <rjones@redhat.com> - 1.0.9-0.12.gitd0fd4c7d
c47c2ce
- Bump and rebuild to fix Dynlink dependency.
c47c2ce
c47c2ce
* Tue Jul 28 2020 Richard W.M. Jones <rjones@redhat.com> - 1.0.9-0.11
f7ce04a
- Move to git d0fd4c7dfa70763870914eedee7022fa35f700e2.
f7ce04a
- Includes the Python 3.9 patches already, so remove those.
f7ce04a
- Rewrite BASH_COMPLETION_DIR in configuration.
f7ce04a
- Properly rebuild menhir-generated files.
f7ce04a
4b19f01
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.9-0.10.6718331f8b574fa4100c7aa82ee4c833a6652ac0
4b19f01
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
4b19f01
d53f0ee
* Sat May 30 2020 Richard W.M. Jones <rjones@redhat.com> - 1.0.9-0.9.6718331f8b574fa4100c7aa82ee4c833a6652ac0
d53f0ee
- Rebuild for updated ocaml-extlib (RHBZ#1837823).
d53f0ee
eba9ba9
* Sat May 30 2020 Richard W.M. Jones <rjones@redhat.com> - 1.0.9-0.8.6718331f
eba9ba9
- Add fix for Python 3.9.
eba9ba9
1ef1997
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.0.9-0.7.111d328fee1303f14a5b9def835301d849e41331
1ef1997
- Rebuilt for Python 3.9
1ef1997
859a85c
* Tue May 05 2020 Richard W.M. Jones <rjones@redhat.com> - 1.0.9-0.6.111d328fee1303f14a5b9def835301d849e41331
859a85c
- Ignore ocamlx dependencies too.
859a85c
512a4fe
* Tue May 05 2020 Richard W.M. Jones <rjones@redhat.com> - 1.0.9-0.5.111d328fee1303f14a5b9def835301d849e41331
512a4fe
- OCaml 4.11.0+dev2-2020-04-22 rebuild
512a4fe
3d6410d
* Wed Apr 22 2020 Richard W.M. Jones <rjones@redhat.com> - 1.0.9-0.4.111d328fee1303f14a5b9def835301d849e41331
3d6410d
- OCaml 4.11.0 pre-release attempt 2
3d6410d
16961ab
* Fri Apr 03 2020 Richard W.M. Jones <rjones@redhat.com> - 1.0.9-0.3.111d328fee1303f14a5b9def835301d849e41331
16961ab
- Update all OCaml dependencies for RPM 4.16.
16961ab
9605960
* Wed Mar 25 2020 Jerry James <loganjerry@gmail.com> - 1.0.9-0.2
9605960
- Rebuild for ocaml-menhir 20200211
9605960
04b7ea4
* Wed Mar 25 2020 Richard W.M. Jones <rjones@redhat.com> - 1.0.9-0.1
04b7ea4
- Package pre-release version which supports OCaml 4.10 (RHBZ#1817182).
04b7ea4
973ff7f
* Wed Jan 29 2020 Richard W.M. Jones <rjones@redhat.com> - 1.0.8-5
973ff7f
- Remove -unsafe-string.
973ff7f
73b0cc5
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.8-4
73b0cc5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
73b0cc5
c0b33bb
* Sun Jan 19 2020 Richard W.M. Jones <rjones@redhat.com> - 1.0.8-3
c0b33bb
- OCaml 4.10.0+beta1 rebuild.
c0b33bb
d15a7b8
* Fri Dec 06 2019 Richard W.M. Jones <rjones@redhat.com> - 1.0.8-2
d15a7b8
- OCaml 4.09.0 (final) rebuild.
d15a7b8
7639c23
* Mon Oct 14 2019 Richard W.M. Jones <rjones@redhat.com> - 1.0.8-1
7639c23
- Official 1.0.8 release.
7639c23
c6d7ace
* Tue Sep 24 2019 Richard W.M. Jones <rjones@redhat.com> - 1.0.8-0.1
c6d7ace
- Add upstream patches so coccinelle builds against OCaml 4.08 (RHBZ#1734855).
c6d7ace
f8c8465
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0.7-8
f8c8465
- Rebuilt for Python 3.8
f8c8465
4def3fa
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.7-7
4def3fa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
4def3fa
da46f47
* Thu Jul 11 2019 Richard W.M. Jones <rjones@redhat.com> - 1.0.7-6
da46f47
- Bump and rebuild to fix broken deps.
4574e8c
- Remove camlp4 dependency.
5bd24d8
- Remove sexplib dependency.
da46f47
2dfdaf6
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.7-5
2dfdaf6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
2dfdaf6
ace0b3b
* Thu Nov 08 2018 Richard W.M. Jones <rjones@redhat.com> - 1.0.7-4
ace0b3b
- Set PYTHONPATH before testing for python support.
ace0b3b
f376fc8
* Thu Nov 08 2018 Richard W.M. Jones <rjones@redhat.com> - 1.0.7-3
f376fc8
- Use autogen script and remove redundent autoreconf.
f376fc8
- Eliminate unsupported --enable-release flag for configure, using
f376fc8
  targets instead (all-release when ocamlopt is available).
f376fc8
- Include %%check for python support.
f376fc8
- Run tests against non-script spatch so environment variables have effect.
f376fc8
- Thanks: John Friend.
f376fc8
031cc22
* Thu Nov 08 2018 Richard W.M. Jones <rjones@redhat.com> - 1.0.7-2
031cc22
- Second attempt at packaging 1.0.7.
031cc22
- Different way to rebuild autotools.
031cc22
- Move spatch binary to %%_libdir/coccinelle and use spatch wrapper script.
031cc22
- Package spgen.
031cc22
dbcd596
* Thu Jul 12 2018 Dominique Martinet <asmadeus@codewreck.org> - 1.0.7-1
dbcd596
- Upgrade to new upstream version 1.0.7
dbcd596
- Add -f to the 'remove generated menhir files' because their presence depend
dbcd596
  on the source
dbcd596
- Add another hack to generate a first dummy pyml_stubs lib to make the build
dbcd596
  system happy
dbcd596
- RWMJ: Run autoreconf.
dbcd596
- RWMJ: Add and fix bash-completion subpackage.
dbcd596
ad0a58d
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.6-20
ad0a58d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
ad0a58d
6ef59b4
* Wed Jul 11 2018 Richard W.M. Jones <rjones@redhat.com> - 1.0.6-19
6ef59b4
- OCaml 4.07.0 (final) rebuild.
6ef59b4
6539b15
* Wed Jun 20 2018 Richard W.M. Jones <rjones@redhat.com> - 1.0.6-18
6539b15
- OCaml 4.07.0-rc1 rebuild.
6539b15
2b55bf0
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.0.6-17
2b55bf0
- Rebuilt for Python 3.7
2b55bf0
217157c
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.6-16
217157c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
217157c
0bdf3b9
* Fri Nov 17 2017 Richard W.M. Jones <rjones@redhat.com> - 1.0.6-15
0bdf3b9
- OCaml 4.06.0 rebuild.
2ed1adc
- Temporarily enable -unsafe-string.
2ed1adc
- Pass -g to all instances of the compiler.
0bdf3b9
95971e3
* Wed Aug 09 2017 Richard W.M. Jones <rjones@redhat.com> - 1.0.6-14
95971e3
- Bump release and rebuild.
95971e3
dba2d06
* Tue Aug 08 2017 Richard W.M. Jones <rjones@redhat.com> - 1.0.6-13
dba2d06
- OCaml 4.05.0 rebuild.
dba2d06
1ae7228
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.6-12
1ae7228
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
1ae7228
0bf4b68
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.6-11
0bf4b68
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
0bf4b68
77967ab
* Tue Jun 27 2017 Richard W.M. Jones <rjones@redhat.com> - 1.0.6-10
77967ab
- Bump release and rebuild.
77967ab
552bb82
* Tue Jun 27 2017 Richard W.M. Jones <rjones@redhat.com> - 1.0.6-9
552bb82
- OCaml 4.04.2 rebuild.
552bb82
477f89d
* Fri May 12 2017 Richard W.M. Jones <rjones@redhat.com> - 1.0.6-8
477f89d
- OCaml 4.04.1 rebuild.
477f89d
Igor Gnatenko b0e0029
* Wed Feb 15 2017 Igor Gnatenko <ignatenko@redhat.com> - 1.0.6-7
Igor Gnatenko b0e0029
- Rebuild for brp-python-bytecompile
Igor Gnatenko b0e0029
0a969c4
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.6-6
0a969c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
0a969c4
b655152
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.0.6-5
b655152
- Rebuild for Python 3.6
b655152
52a7c5c
* Wed Nov 09 2016 Dan Horák <dan@danny.cz> - 1.0.6-4
52a7c5c
- remove ExcludeArch
52a7c5c
6810cf5
* Tue Nov 08 2016 Richard W.M. Jones <rjones@redhat.com> - 1.0.6-3
03795e2
- Rebuild for OCaml 4.04.0.
6810cf5
- Hide Get_constants2 internal symbol.
03795e2
c55916f
* Mon Oct 31 2016 Richard Jones <rjones@redhat.com> - 1.0.6-1
c55916f
- New upstream version 1.0.6 (RHBZ#1380000).
c55916f
e1ed487
* Mon Sep 19 2016 Richard Jones <rjones@redhat.com> - 1.0.5-2
e1ed487
- Install OCaml *.cmi files to get scripting support.
e1ed487
6134ef7
* Tue Jul 19 2016 Richard Jones <rjones@redhat.com> - 1.0.5-1
6134ef7
- New upstream version 1.0.5 (RHBZ#1342701).
6134ef7
- Remove upstream patch.
6134ef7
- Don't use parallel builds.
6134ef7
- Don't package spgen.
6134ef7
- Add BR various texlive-* packages.
4a06a66
- Force configure to use python3.
6134ef7
523b3b3
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.4-7
523b3b3
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
523b3b3
7dc49e2
* Mon May 02 2016 Tomas Orsava <torsava@redhat.com> - 1.0.4-6
7dc49e2
- Fixed shebang pointing to Python instead of Python 3
7dc49e2
af43c9c
* Fri Apr 15 2016 Dominika Krejci <dkrejci@redhat.com> - 1.0.4.-5
af43c9c
- Ported for Python 3 (#1313932)
af43c9c
9ea1117
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-4
9ea1117
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
9ea1117
61ffb49
* Thu Jan 14 2016 Richard Jones <rjones@redhat.com> - 1.0.4-3
61ffb49
- Apply patch to fix ppc64le builds (thanks Julia Lawall) (RHBZ#1297855).
61ffb49
  See also: https://systeme.lip6.fr/pipermail/cocci/2016-January/thread.html#2742
61ffb49
cdffb56
* Wed Jan 06 2016 Richard Jones <rjones@redhat.com> - 1.0.4-2
cdffb56
- Remove bogus python_sitelib definition.
cdffb56
2a1be0c
* Tue Nov  3 2015 Richard W.M. Jones <rjones@redhat.com> - 1.0.4-1
2a1be0c
- New upstream version 1.0.4.
2a1be0c
- Remove the spgen program as it is not meant to be packaged.
2a1be0c
- Do not need to delete menhir files.
2a1be0c
- Do not install OCaml *.cmi files.
2a1be0c
e23234c
* Tue Oct 27 2015 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-1
e23234c
- New upstream version 1.0.3.
e23234c
- Set DYNLINKDIR.
e23234c
- Unbundle ocaml-menhir, regenerate intermediate parser files.
e23234c
- Declare that pycaml and parmap are bundled.
e23234c
- Use 'make world' install of 'make all opt' (see install.txt).
e23234c
- Add spgen to package.  It's broken at the moment - reported upstream.
ff7e078
- Various BRs required to build the documentation.
e23234c
c0d5bb7
* Tue Sep 01 2015 Richard W.M. Jones <rjones@redhat.com> - 1.0.2-1
c0d5bb7
- New upstream version 1.0.2.
c0d5bb7
- Use standard configure macro instead of ./configure.
c0d5bb7
- Various fixes to configuration.
c0d5bb7
- Package OCaml bindings.
c0d5bb7
aabb513
* Tue Jul 28 2015 Richard W.M. Jones <rjones@redhat.com> - 1.0.1-5
aabb513
- OCaml 4.02.3 rebuild.
aabb513
1e94422
* Wed Jun 24 2015 Richard W.M. Jones <rjones@redhat.com> - 1.0.1-4
1e94422
- ocaml-4.02.2 final rebuild.
1e94422
798f465
* Tue Jun 23 2015 Richard W.M. Jones <rjones@redhat.com> - 1.0.1-3
798f465
- Put coccinelle data into libdir (instead of /usr/share) since it
798f465
  contains the binaries.
798f465
- Remove all the code which moved the binaries around.
798f465
- Fix the spatch wrapper script to contain the correct directory (RHBZ#1234812)
798f465
78ca56e
* Thu Jun 18 2015 Richard W.M. Jones <rjones@redhat.com> - 1.0.1-1
78ca56e
- New upstream version 1.0.1 (RHBZ#1233198).
78ca56e
0517861
* Wed Jun 17 2015 Richard W.M. Jones <rjones@redhat.com> - 1.0.0-4
0517861
- ocaml-4.02.2 rebuild.
0517861
00054fa
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-3
00054fa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
00054fa
f6c1d5c
* Fri Apr 24 2015 Richard W.M. Jones <rjones@redhat.com> - 1.0.0-2
f6c1d5c
- Ignore some more internal module names when generating dependencies.
f6c1d5c
c353009
* Thu Apr 23 2015 Richard W.M. Jones <rjones@redhat.com> - 1.0.0-1
c353009
- Version 1.0.0(!)
c353009
26f878d
* Tue Feb 17 2015 Richard W.M. Jones <rjones@redhat.com> - 1.0.0-0.rc21.1.5
26f878d
- ocaml-4.02.1 rebuild.
26f878d
b59425a
* Sun Aug 31 2014 Richard W.M. Jones <rjones@redhat.com> - 1.0.0-0.rc21.1.4
b59425a
- ocaml-4.02.0 final rebuild.
b59425a
9ad8b82
* Sat Aug 23 2014 Richard W.M. Jones <rjones@redhat.com> - 1.0.0-0.rc21.1.3
9ad8b82
- ocaml-4.02.0+rc1 rebuild.
9ad8b82
0313e59
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-0.rc21.1.2
0313e59
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
0313e59
32045c4
* Sat Aug 02 2014 Richard W.M. Jones <rjones@redhat.com> - 1.0.0-0.rc21.1.1
32045c4
- ocaml-4.02.0-0.8.git10e45753.fc22 rebuild.
32045c4
2100563
* Mon Jul 21 2014 Richard W.M. Jones <rjones@redhat.com> - 1.0.0-0.rc21.1
2100563
- New upstream version 1.0.0-rc21.
2100563
- OCaml 4.02.0 beta rebuild.
2100563
d5ed893
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-0.rc20.1.1
d5ed893
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
d5ed893
688ef51
* Tue Feb 25 2014 Richard W.M. Jones <rjones@redhat.com> - 1.0.0-0.rc20.1
688ef51
- New upstream version 1.0.0-rc20.
688ef51
4823b45
* Thu Sep 19 2013 Richard W.M. Jones <rjones@redhat.com> - 1.0.0-0.rc18.1
4823b45
- New upstream version 1.0.0-rc18.
4823b45
- OCaml 4.01.0 rebuild.
4823b45
- Enable debuginfo.
4823b45
- Remove strip & prelink hacks.
4823b45
- Enable test.
4823b45
7a14598
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-0.rc17.2.1
7a14598
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
7a14598
be2a172
* Sat Apr 27 2013 Richard W.M. Jones <rjones@redhat.com> - 1.0.0-0.rc17.2
be2a172
- Ignore a lot more symbols leaked by the library.
be2a172
a734290
* Fri Apr 26 2013 Richard W.M. Jones <rjones@redhat.com> - 1.0.0-0.rc17.1
a734290
- New upstream version 1.0.0-rc17.
a734290
c80db49
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-0.rc14.6.1
c80db49
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
c80db49
db3f4e1
* Sun Dec 02 2012 Bruno Wolff III <bruno@wolff.to> - 1.0.0-0.rc14.6
db3f4e1
- Rebuild for ocaml 4.0.1.
db3f4e1
8198954
* Tue Jul 31 2012 Richard W.M. Jones <rjones@redhat.com> - 1.0.0-0.rc14.5
ccb965a
- Remove sexplib patch which is no longer required by upstream.
8198954
- Enable parallel building.
ccb965a
e4cbe88
* Mon Jul 30 2012 Richard W.M. Jones <rjones@redhat.com> - 1.0.0-0.rc14.3
e4cbe88
- Confirmed with upstream that *.so files are no longer required.
e4cbe88
- Re-enable move of python libs to python library dir.
e4cbe88
1ec60f2
* Mon Jul 30 2012 Richard W.M. Jones <rjones@redhat.com> - 1.0.0-0.rc14.2
f030d09
- New upstream version 1.0.0-rc14.
1ec60f2
- +BR ocaml-camlp4-devel
f030d09
15a075c
* Mon Jul 30 2012 Richard W.M. Jones <rjones@redhat.com> - 1.0.0-0.rc12.3
daa5573
- New upstream version 1.0.0-rc12.
daa5573
- Rebuild for OCaml 4.00.0.
ad45935
- Remove buildroot, defattr, clean for modern RPM.
ad45935
- Includes bundled extlib.  Disable this by adding BR ocaml-extlib-devel.
6d4d859
- Remove bytecode binary (spatch.byte).
ad45935
- Fix check rule so it sets COCCINELLE_HOME.
ad45935
- NB: TEST DISABLED.  UNLIKELY THAT SPATCH FUNCTIONS CORRECTLY.
ad45935
  + Disable _libdir/*.so stripping.  Why is it not installed?
ad45935
  + Disable Python stuff.  Why is it not installed?
daa5573
6434983
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-0.rc9.6.2
6434983
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
6434983
605bf8a
* Fri Feb 10 2012 Petr Pisar <ppisar@redhat.com> - 1.0.0-0.rc9.6.1
605bf8a
- Rebuild against PCRE 8.30
605bf8a
114a8e9
* Wed Feb  1 2012 Richard W.M. Jones <rjones@redhat.com> - 1.0.0-0.rc9.6
114a8e9
- Update to 1.0.0-rc9 (requested by Julia Lawall).
114a8e9
d2b7d4b
* Thu Jan 12 2012 Richard W.M. Jones <rjones@redhat.com> - 1.0.0-0.rc8.5
b47b54a
- Ignore Regexp (internal module).
b47b54a
d4677d4
* Sat Jan  7 2012 Richard W.M. Jones <rjones@redhat.com> - 1.0.0-0.rc8.3
5dd6f95
- Update to 1.0.0-rc8.
5dd6f95
- Rebuild for OCaml 3.12.1.
d4677d4
- Use Fedora ocaml-sexplib, ocaml-pcre instead of forked embedded one.
5dd6f95
ea4fb18
* Mon Jul 25 2011 Richard W.M. Jones <rjones@redhat.com> - 1.0.0-0.rc4.2
ebd3f9a
- Update to 1.0.0-rc4.
ebd3f9a
- Requires ocaml-findlib (RHBZ#725415).
ebd3f9a
- Non-upstream patch to remove use of a couple of functions from the
ebd3f9a
  forked ocaml sexpr project, so we can use the Fedora one instead.
ebd3f9a
  See: http://lists.diku.dk/pipermail/cocci/2011-January/001439.html
ebd3f9a
- Include a new manpage in section 3.
ebd3f9a
f67e561
* Wed Mar 30 2011 Richard W.M. Jones <rjones@redhat.com> - 0.2.5-0.rc9.1
f67e561
- Update to 0.2.5-rc9.
f67e561
- Ignore a bunch more false dependencies.
f67e561
401b6f8
* Sat Mar  5 2011 Richard W.M. Jones <rjones@redhat.com> - 0.2.5-0.rc4.3
401b6f8
- Bump and rebuild to try to fix dependency issue.
401b6f8
2a68c64
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.5-0.rc4.2.1
2a68c64
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
2a68c64
8dc9245
* Thu Feb  3 2011 Richard W.M. Jones <rjones@redhat.com> - 0.2.5-0.rc4.2
8dc9245
- New upstream version 0.2.5-rc4.
8dc9245
d21a518
* Mon Jan 10 2011 Richard W.M. Jones <rjones@redhat.com> - 0.2.5-0.rc1.2
d21a518
- Bump and rebuild.
d21a518
e44f9a1
* Fri Jan  7 2011 Richard W.M. Jones <rjones@redhat.com> - 0.2.5-0.rc1.1
e44f9a1
- New upstream version 0.2.5-rc1.
e44f9a1
- Remove upstream patch for Python 2.7.
e44f9a1
- Rebuild for OCaml 3.12.0.
e44f9a1
4f52653
* Wed Jul 28 2010 Orcan Ogetbil <oget[DOT]fedora[AT]gmail[DOT]com> - 0.2.3-0.rc6.3
4f52653
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
4f52653
ae2fb06
* Sat Jul 24 2010 Richard W.M. Jones <rjones@redhat.com> - 0.2.3-0.rc6.2
ae2fb06
- Ignore some bogus generated requires.
ae2fb06
e5dccb9
* Fri Jul 23 2010 Richard W.M. Jones <rjones@redhat.com> - 0.2.3-0.rc6.1
e5dccb9
- Fix for Python 2.7.
e5dccb9
53cc67e
* Fri Jul 23 2010 Richard W.M. Jones <rjones@redhat.com> - 0.2.3-0.rc6
53cc67e
- New upstream version 0.2.3rc6.
53cc67e
8cf34a1
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.2.0-0.rc1.2.1
8cf34a1
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
8cf34a1
f17b187
* Tue Jan 12 2010 Richard W.M. Jones <rjones@redhat.com> - 0.2.0-0.rc1.2
423478f
- New upstream version 0.2.0rc1.
423478f
cd120d0
* Thu Nov  5 2009 Richard W.M. Jones <rjones@redhat.com> - 0.1.10-2
cd120d0
- Upstream URL and Source0 changed.
cd120d0
6a2f5b3
* Thu Oct  8 2009 Richard W.M. Jones <rjones@redhat.com> - 0.1.10-1
6a2f5b3
- New upstream version 0.1.10.
6a2f5b3
- Removed patch, since fix to CVE-2009-1753 (RHBZ#502174) is now upstream.
6a2f5b3
f7c6cb2
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.8-5
f7c6cb2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
f7c6cb2
fa42328
* Fri May 22 2009 Richard W.M. Jones <rjones@redhat.com> - 0.1.8-4
fb93fbb
- New upstream version 0.1.8.
fb93fbb
- Include patch from Debian to fix CVE-2009-1753 (RHBZ#502174).
fa42328
- Segfaults on PPC64, so added to ExcludeArch.
fb93fbb
09ccb3d
* Thu Apr 16 2009 S390x secondary arch maintainer <fedora-s390x@lists.fedoraproject.org>
09ccb3d
- ExcludeArch sparc64, s390, s390x as we don't have OCaml on those archs
09ccb3d
  (added sparc64 per request from the sparc maintainer)
09ccb3d
1cb60b2
* Tue Mar 17 2009 Richard W.M. Jones <rjones@redhat.com> - 0.1.5-3
1cb60b2
- Make the documentation subpackage "-doc" not "-docs".
1cb60b2
- Comment about patch0 and send upstream.
1cb60b2
1cb60b2
* Mon Mar 16 2009 Richard W.M. Jones <rjones@redhat.com> - 0.1.5-2
1cb60b2
- BR python-devel.
1cb60b2
1cb60b2
* Mon Mar 16 2009 Richard W.M. Jones <rjones@redhat.com> - 0.1.5-1
1cb60b2
- New upstream version 0.1.5.
1cb60b2
- Use the correct method to get Python sitelib (Michal Schmidt).
1cb60b2
1cb60b2
* Wed Jan 28 2009 Richard W.M. Jones <rjones@redhat.com> - 0.1.4-8
1cb60b2
- Remove useless Makefiles from python/coccilib.
1cb60b2
- License is GPLv2 (not GPLv2+).
1cb60b2
- Include documentation and demos in subpackages.
1cb60b2
- Move python library to a more sensible path.
1cb60b2
- Add a check section.
1cb60b2
1cb60b2
* Mon Jan 26 2009 Richard W.M. Jones <rjones@redhat.com> - 0.1.4-6
1cb60b2
- Install the shared library in _libdir.
1cb60b2
- Install the native code version if we have the optimizing compiler.
1cb60b2
1cb60b2
* Wed Jan 21 2009 Richard W.M. Jones <rjones@redhat.com> - 0.1.4-3
1cb60b2
- Patch for Python 2.6.
1cb60b2
1cb60b2
* Wed Jan 21 2009 Richard W.M. Jones <rjones@redhat.com> - 0.1.4-2
1cb60b2
- Initial RPM release.