From 6799448f081325557d2d3bd4d38cd8d623cf9517 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 10 Feb 2017 07:35:18 +0000 Subject: [PATCH 01/32] - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild --- cliquer.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cliquer.spec b/cliquer.spec index 98c0338..dd0860b 100644 --- a/cliquer.spec +++ b/cliquer.spec @@ -1,6 +1,6 @@ Name: cliquer Version: 1.21 -Release: 10%{?dist} +Release: 11%{?dist} Summary: Find cliques in arbitrary weighted graphs Group: Applications/Engineering @@ -120,6 +120,9 @@ LD_LIBRARY_PATH=. make test CFLAGS="${RPM_OPT_FLAGS}" %{_libdir}/libcliquer.so %changelog +* Fri Feb 10 2017 Fedora Release Engineering - 1.21-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + * Wed Feb 03 2016 Fedora Release Engineering - 1.21-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild From 58ef1f5c5f9c3608b621755f2e8d7a596f20eb23 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 26 Jul 2017 04:58:43 +0000 Subject: [PATCH 02/32] - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild --- cliquer.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cliquer.spec b/cliquer.spec index dd0860b..c62db31 100644 --- a/cliquer.spec +++ b/cliquer.spec @@ -1,6 +1,6 @@ Name: cliquer Version: 1.21 -Release: 11%{?dist} +Release: 12%{?dist} Summary: Find cliques in arbitrary weighted graphs Group: Applications/Engineering @@ -120,6 +120,9 @@ LD_LIBRARY_PATH=. make test CFLAGS="${RPM_OPT_FLAGS}" %{_libdir}/libcliquer.so %changelog +* Wed Jul 26 2017 Fedora Release Engineering - 1.21-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + * Fri Feb 10 2017 Fedora Release Engineering - 1.21-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild From d929f2208416229b7565b6a74077aa261c26d6f5 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 2 Aug 2017 18:52:21 +0000 Subject: [PATCH 03/32] - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild --- cliquer.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cliquer.spec b/cliquer.spec index c62db31..520e31b 100644 --- a/cliquer.spec +++ b/cliquer.spec @@ -1,6 +1,6 @@ Name: cliquer Version: 1.21 -Release: 12%{?dist} +Release: 13%{?dist} Summary: Find cliques in arbitrary weighted graphs Group: Applications/Engineering @@ -120,6 +120,9 @@ LD_LIBRARY_PATH=. make test CFLAGS="${RPM_OPT_FLAGS}" %{_libdir}/libcliquer.so %changelog +* Wed Aug 02 2017 Fedora Release Engineering - 1.21-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + * Wed Jul 26 2017 Fedora Release Engineering - 1.21-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild From 9e7a5a3c866168eb094f7cc873ae6cc6c53e7950 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 7 Feb 2018 05:07:27 +0000 Subject: [PATCH 04/32] - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- cliquer.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cliquer.spec b/cliquer.spec index 520e31b..9395066 100644 --- a/cliquer.spec +++ b/cliquer.spec @@ -1,6 +1,6 @@ Name: cliquer Version: 1.21 -Release: 13%{?dist} +Release: 14%{?dist} Summary: Find cliques in arbitrary weighted graphs Group: Applications/Engineering @@ -120,6 +120,9 @@ LD_LIBRARY_PATH=. make test CFLAGS="${RPM_OPT_FLAGS}" %{_libdir}/libcliquer.so %changelog +* Wed Feb 07 2018 Fedora Release Engineering - 1.21-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + * Wed Aug 02 2017 Fedora Release Engineering - 1.21-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild From 87cc0c9d31e7d4c84d7fdca817953f3ee6b39779 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 12 Jul 2018 21:53:13 +0000 Subject: [PATCH 05/32] - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- cliquer.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cliquer.spec b/cliquer.spec index 9395066..d915cdd 100644 --- a/cliquer.spec +++ b/cliquer.spec @@ -1,6 +1,6 @@ Name: cliquer Version: 1.21 -Release: 14%{?dist} +Release: 15%{?dist} Summary: Find cliques in arbitrary weighted graphs Group: Applications/Engineering @@ -120,6 +120,9 @@ LD_LIBRARY_PATH=. make test CFLAGS="${RPM_OPT_FLAGS}" %{_libdir}/libcliquer.so %changelog +* Thu Jul 12 2018 Fedora Release Engineering - 1.21-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + * Wed Feb 07 2018 Fedora Release Engineering - 1.21-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild From 2bccea2e1aa12b7537db56811f362cb3b3db3f90 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Tue, 24 Jul 2018 16:36:27 +0200 Subject: [PATCH 06/32] Add missing BuildRequires on gcc /var/tmp/rpm-tmp.fRKpdg: line 34: gcc: command not found References: https://bugzilla.redhat.com/show_bug.cgi?id=1606863 Signed-off-by: Igor Gnatenko --- cliquer.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/cliquer.spec b/cliquer.spec index d915cdd..456209e 100644 --- a/cliquer.spec +++ b/cliquer.spec @@ -26,6 +26,7 @@ Patch0: %{name}-sagemath.patch Requires: %{name}-libs%{?_isa} = %{version}-%{release} +BuildRequires: gcc %description The main cliquer package contains a command-line interface to the cliquer library. Note that the upstream binary name is "cl", which is From 0ad62b01898042ddb0a9407dce754c5c899f3666 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Tue, 22 Jan 2019 18:38:39 +0100 Subject: [PATCH 07/32] Remove obsolete ldconfig scriptlets References: https://fedoraproject.org/wiki/Changes/RemoveObsoleteScriptlets Signed-off-by: Igor Gnatenko --- cliquer.spec | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cliquer.spec b/cliquer.spec index 456209e..d023635 100644 --- a/cliquer.spec +++ b/cliquer.spec @@ -103,9 +103,7 @@ cp -p %{SOURCE8} $RPM_BUILD_ROOT%{_mandir}/man1 %check LD_LIBRARY_PATH=. make test CFLAGS="${RPM_OPT_FLAGS}" -%post libs -p /sbin/ldconfig - -%postun libs -p /sbin/ldconfig +%ldconfig_scriptlets libs %files %doc cliquer*.pdf From 5d1bed98d373cde34fe978386a009a21dc9e2183 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Mon, 28 Jan 2019 20:17:40 +0100 Subject: [PATCH 08/32] Remove obsolete Group tag References: https://fedoraproject.org/wiki/Changes/Remove_Group_Tag --- cliquer.spec | 3 --- 1 file changed, 3 deletions(-) diff --git a/cliquer.spec b/cliquer.spec index d023635..8d46b8c 100644 --- a/cliquer.spec +++ b/cliquer.spec @@ -3,7 +3,6 @@ Version: 1.21 Release: 15%{?dist} Summary: Find cliques in arbitrary weighted graphs -Group: Applications/Engineering License: GPLv2+ URL: http://users.tkk.fi/pat/cliquer.html Source0: http://users.tkk.fi/~pat/%{name}/%{name}-%{version}.tar.gz @@ -34,7 +33,6 @@ too generic for Fedora. Therefore, the binary is named "cliquer". %package libs Summary: Library to find cliques in arbitrary weighted graphs -Group: Development/Libraries %description libs Cliquer is a set of C routines for finding cliques in an arbitrary @@ -44,7 +42,6 @@ while still being flexible and easy to use. %package devel Summary: Development files for cliquer -Group: Development/Libraries Requires: %{name}-libs%{?_isa} = %{version}-%{release} %description devel From 33a8d9a6dcf90de2bc4b23729f23e4694f0639de Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 31 Jan 2019 15:45:14 +0000 Subject: [PATCH 09/32] - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- cliquer.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cliquer.spec b/cliquer.spec index 8d46b8c..e93d63a 100644 --- a/cliquer.spec +++ b/cliquer.spec @@ -1,6 +1,6 @@ Name: cliquer Version: 1.21 -Release: 15%{?dist} +Release: 16%{?dist} Summary: Find cliques in arbitrary weighted graphs License: GPLv2+ @@ -116,6 +116,9 @@ LD_LIBRARY_PATH=. make test CFLAGS="${RPM_OPT_FLAGS}" %{_libdir}/libcliquer.so %changelog +* Thu Jan 31 2019 Fedora Release Engineering - 1.21-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + * Thu Jul 12 2018 Fedora Release Engineering - 1.21-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild From 6142a27f5233d99b799d835a11435faaf9a375f5 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 24 Jul 2019 20:25:30 +0000 Subject: [PATCH 10/32] - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- cliquer.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cliquer.spec b/cliquer.spec index e93d63a..fee9b8d 100644 --- a/cliquer.spec +++ b/cliquer.spec @@ -1,6 +1,6 @@ Name: cliquer Version: 1.21 -Release: 16%{?dist} +Release: 17%{?dist} Summary: Find cliques in arbitrary weighted graphs License: GPLv2+ @@ -116,6 +116,9 @@ LD_LIBRARY_PATH=. make test CFLAGS="${RPM_OPT_FLAGS}" %{_libdir}/libcliquer.so %changelog +* Wed Jul 24 2019 Fedora Release Engineering - 1.21-17 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + * Thu Jan 31 2019 Fedora Release Engineering - 1.21-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild From 28f8615ef95acdfe504c53061dfe2e12454b4ca9 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Tue, 28 Jan 2020 14:13:21 +0000 Subject: [PATCH 11/32] - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- cliquer.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cliquer.spec b/cliquer.spec index fee9b8d..5e525f6 100644 --- a/cliquer.spec +++ b/cliquer.spec @@ -1,6 +1,6 @@ Name: cliquer Version: 1.21 -Release: 17%{?dist} +Release: 18%{?dist} Summary: Find cliques in arbitrary weighted graphs License: GPLv2+ @@ -116,6 +116,9 @@ LD_LIBRARY_PATH=. make test CFLAGS="${RPM_OPT_FLAGS}" %{_libdir}/libcliquer.so %changelog +* Tue Jan 28 2020 Fedora Release Engineering - 1.21-18 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + * Wed Jul 24 2019 Fedora Release Engineering - 1.21-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild From 5806ae0f82df81711d666db527c36234fba02baf Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Mon, 27 Jul 2020 14:06:27 +0000 Subject: [PATCH 12/32] - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- cliquer.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cliquer.spec b/cliquer.spec index 5e525f6..a351495 100644 --- a/cliquer.spec +++ b/cliquer.spec @@ -1,6 +1,6 @@ Name: cliquer Version: 1.21 -Release: 18%{?dist} +Release: 19%{?dist} Summary: Find cliques in arbitrary weighted graphs License: GPLv2+ @@ -116,6 +116,9 @@ LD_LIBRARY_PATH=. make test CFLAGS="${RPM_OPT_FLAGS}" %{_libdir}/libcliquer.so %changelog +* Mon Jul 27 2020 Fedora Release Engineering - 1.21-19 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + * Tue Jan 28 2020 Fedora Release Engineering - 1.21-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild From 6e94492919b63f6e45e5eb3f1102e679d6a10a03 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Tue, 12 Jan 2021 05:59:43 +0000 Subject: [PATCH 13/32] Add BuildRequires: make https://fedoraproject.org/wiki/Changes/Remove_make_from_BuildRoot --- cliquer.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/cliquer.spec b/cliquer.spec index a351495..ef12de7 100644 --- a/cliquer.spec +++ b/cliquer.spec @@ -25,6 +25,7 @@ Patch0: %{name}-sagemath.patch Requires: %{name}-libs%{?_isa} = %{version}-%{release} +BuildRequires: make BuildRequires: gcc %description The main cliquer package contains a command-line interface to the From 9d37b15cb5855f39ded85bbade5b31352f156e65 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Tue, 26 Jan 2021 02:06:25 +0000 Subject: [PATCH 14/32] - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- cliquer.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cliquer.spec b/cliquer.spec index ef12de7..8b9e43c 100644 --- a/cliquer.spec +++ b/cliquer.spec @@ -1,6 +1,6 @@ Name: cliquer Version: 1.21 -Release: 19%{?dist} +Release: 20%{?dist} Summary: Find cliques in arbitrary weighted graphs License: GPLv2+ @@ -117,6 +117,9 @@ LD_LIBRARY_PATH=. make test CFLAGS="${RPM_OPT_FLAGS}" %{_libdir}/libcliquer.so %changelog +* Tue Jan 26 2021 Fedora Release Engineering - 1.21-20 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + * Mon Jul 27 2020 Fedora Release Engineering - 1.21-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild From 91a654896941188540f529152eed119f38f1b09e Mon Sep 17 00:00:00 2001 From: Jerry James Date: Thu, 17 Jun 2021 09:59:37 -0600 Subject: [PATCH 15/32] Version 1.22. - New URLs. - Drop upstreamed -sagemath patch. - Use autotools to build. --- .gitignore | 2 +- basic.c | 24 ------ cl.h | 33 -------- cliquer-sagemath.patch | 178 ----------------------------------------- cliquer.spec | 104 ++++++++++-------------- hamming.c | 46 ----------- poly.c | 169 -------------------------------------- sources | 8 +- tetromino.h | 104 ------------------------ 9 files changed, 49 insertions(+), 619 deletions(-) delete mode 100644 basic.c delete mode 100644 cl.h delete mode 100644 cliquer-sagemath.patch delete mode 100644 hamming.c delete mode 100644 poly.c delete mode 100644 tetromino.h diff --git a/.gitignore b/.gitignore index ff145ef..349eecb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -/cliquer-1.21.tar.gz +/cliquer-*.tar.gz /cliquer.pdf /cliquer_bm.pdf /cliquer_fm.pdf diff --git a/basic.c b/basic.c deleted file mode 100644 index 54c455f..0000000 --- a/basic.c +++ /dev/null @@ -1,24 +0,0 @@ - -#include -#include "cliquer.h" - -int main(int argc, char *argv[]) { - graph_t *g; - set_t s; - - if (argc!=2) { - fprintf(stderr,"%s \n",argv[0]); - return 1; - } - g=graph_read_dimacs_file(argv[1]); - if (g==NULL) - return 1; - - ASSERT(graph_test(g,stderr)); - - s=clique_find_single(g,0,0,FALSE,NULL); - set_print(s); - - return 0; -} - diff --git a/cl.h b/cl.h deleted file mode 100644 index cd08505..0000000 --- a/cl.h +++ /dev/null @@ -1,33 +0,0 @@ - -#include -#include -#include - -#ifdef ENABLE_LONG_OPTIONS -#include -#endif - -#include "cliquer.h" - - -#define TRYFORHELP "Try `%s -h' for more information.\n",argv[0] - -void printhelp(char *prog); -void read_options(int argc, char **argv); -void print_search(graph_t *g); -boolean record_clique_func(set_t s,graph_t *g,clique_options *opts); -boolean print_clique_func(set_t s,graph_t *g,clique_options *opts); -void print_clique(set_t s,graph_t *g); - -// As the global variables remain between two SAGE call, they -// have to be reset each time -void sage_reset_global_variables(); -// The opt structure has to be initialised in each SAGE function -clique_options * sage_init_clique_opt(); -// Computes a maximum clique of the graph g and return its size -// The table list contains the ID of the vertices -int sage_clique_max(graph_t *g,int **list); -int sage_all_clique_max(graph_t *g,int **list); -int sage_clique_number(graph_t *g); - - diff --git a/cliquer-sagemath.patch b/cliquer-sagemath.patch deleted file mode 100644 index aea47f9..0000000 --- a/cliquer-sagemath.patch +++ /dev/null @@ -1,178 +0,0 @@ -diff -up cliquer-1.21/cl.c.orig cliquer-1.21/cl.c ---- cliquer-1.21/cl.c.orig 2012-05-09 01:22:23.361598133 -0300 -+++ cliquer-1.21/cl.c 2012-05-09 01:26:12.768606918 -0300 -@@ -3,17 +3,21 @@ - #include - #include - -+#ifdef MAIN - #ifdef ENABLE_LONG_OPTIONS - #include - #endif -+#endif - - #include "cliquer.h" - - - #define TRYFORHELP "Try `%s -h' for more information.\n",argv[0] - -+#ifdef MAIN - void printhelp(char *prog); - void read_options(int argc, char **argv); -+#endif - void print_search(graph_t *g); - boolean record_clique_func(set_t s,graph_t *g,clique_options *opts); - boolean print_clique_func(set_t s,graph_t *g,clique_options *opts); -@@ -39,7 +43,131 @@ static set_t *clique_list; - static int clique_count=0; - static int clique_list_size=0; - -+// As the global variables remain between two SAGE call, they -+// have to be reset each time -+void sage_reset_global_variables(){ -+ find_all=FALSE; -+ min_weight=0; -+ min_weight_set=FALSE; -+ max_weight=0; -+ max_weight_set=FALSE; -+ maximal=FALSE; -+ unweighted=FALSE; -+ number1=TRUE; -+ quiet=0; -+ only_weight=FALSE; -+ clique_count=0; -+ clique_list_size=0; -+} -+ -+ -+// The opt structure has to be initialised in each SAGE function -+clique_options * sage_init_clique_opt(){ -+ sage_reset_global_variables(); -+ clique_options *opts; -+ quiet++; -+ opts=malloc(sizeof(clique_options)); -+ if (quiet) -+ opts->time_function=NULL; -+ else -+ opts->time_function=clique_print_time; -+ opts->output=stderr; -+ opts->reorder_function=reorder; -+ opts->reorder_map=NULL; -+ // Without commenting these lines the sage_all_clique_max -+ // function does not work correctly -+ -+ /* -+ if (quiet) -+ opts->user_function=print_clique_func; -+ else -+ */ -+ opts->user_function=record_clique_func; -+ opts->user_data=NULL; -+ opts->clique_list=NULL; -+ opts->clique_list_length=0; -+ return opts; -+} -+ -+ -+// Computes a maximum clique of the graph g and return its size -+// The table list contains the ID of the vertices -+int sage_clique_max(graph_t *g,int **list){ -+ sage_reset_global_variables(); -+ quiet++; -+ find_all=FALSE; -+ maximal=TRUE; -+ number1=FALSE; -+ set_t s; -+ int i,l; -+ s=clique_unweighted_find_single(g,min_weight, -+ max_weight,maximal, -+ sage_init_clique_opt()); -+ -+ // Writing the answer into a int [] to be read by Sage -+ int size=set_size(s); -+ *list=malloc(sizeof(int)*size); -+ l=0; -+ for (i=0; i|' %{SOURCE4} > example/basic.c -sed 's|"cliquer.h"||' %{SOURCE5} > example/hamming.c -sed 's|"cliquer.h"||' %{SOURCE6} > example/poly.c -cp -p %{SOURCE7} example sed -i \ 's/59 Temple Place, Suite 330, Boston, MA 02111-1307/51 Franklin Street, Suite 500, Boston, MA 02110-1335/' \ - LICENSE + COPYING %build -# The distributed Makefile just builds a binary named "cl". However, the -# examples show that the internal code is clearly meant to be used as a -# library. So we build a library by hand. -gcc ${RPM_OPT_FLAGS} -fPIC -c cl.c -gcc ${RPM_OPT_FLAGS} -fPIC -c cliquer.c -gcc ${RPM_OPT_FLAGS} -fPIC -c graph.c -gcc ${RPM_OPT_FLAGS} -fPIC -c reorder.c -gcc ${RPM_OPT_FLAGS} -fPIC -shared -o libcliquer.so.%{version} \ - -Wl,-soname=libcliquer.so.1 cl.o cliquer.o graph.o reorder.o -ln -s libcliquer.so.%{version} libcliquer.so.1 -ln -s libcliquer.so.1 libcliquer.so +%configure --disable-static --disable-silent-rules -# Now build the binary -gcc ${RPM_OPT_FLAGS} -DENABLE_LONG_OPTIONS -DMAIN -c cl.c -gcc ${RPM_OPT_FLAGS} -o cliquer cl.o -L. -lcliquer +# Get rid of undesirable hardcoded rpaths; workaround libtool reordering +# -Wl,--as-needed after all the libraries. +sed -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \ + -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \ + -e 's|CC="\(.*g..\)"|CC="\1 -Wl,--as-needed"|' \ + -i libtool + +%make_build %install -# Install the library -mkdir -p $RPM_BUILD_ROOT%{_libdir} -cp -pP libcliquer.so* $RPM_BUILD_ROOT%{_libdir} -chmod 0755 $RPM_BUILD_ROOT%{_libdir}/libcliquer.so.%{version} +%make_install -# Install the binary -mkdir -p $RPM_BUILD_ROOT%{_bindir} -install -m 0755 -p cliquer $RPM_BUILD_ROOT%{_bindir}/cliquer +# Add missing executable bit +chmod 0755 %{buildroot}%{_libdir}/libcliquer.so.1.* -# Install the header file -mkdir -p $RPM_BUILD_ROOT%{_includedir}/cliquer -cp -p %{SOURCE9} cliquer.h cliquerconf.h graph.h misc.h reorder.h set.h $RPM_BUILD_ROOT%{_includedir}/cliquer +# We do not want the libtool archive +rm %{buildroot}%{_libdir}/*.la + +# We do not want to install the examples +rm -fr %{buildroot}%{_datadir}/%{name} + +# The name "cl" is very short and ambiguous +mv %{buildroot}%{_bindir}/cl %{buildroot}%{_bindir}/%{name} # Install the man page -mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1 -cp -p %{SOURCE8} $RPM_BUILD_ROOT%{_mandir}/man1 +mkdir -p %{buildroot}%{_mandir}/man1 +cp -p %{SOURCE4} %{buildroot}%{_mandir}/man1 %check -LD_LIBRARY_PATH=. make test CFLAGS="${RPM_OPT_FLAGS}" - -%ldconfig_scriptlets libs +LD_LIBRARY_PATH=. make test CFLAGS="%build_cflags" %files %doc cliquer*.pdf @@ -109,14 +86,21 @@ LD_LIBRARY_PATH=. make test CFLAGS="${RPM_OPT_FLAGS}" %{_mandir}/man1/* %files libs -%doc ChangeLog LICENSE README example -%{_libdir}/libcliquer.so.* +%doc ChangeLog README +%license COPYING +%{_libdir}/libcliquer.so.1* %files devel %{_includedir}/%{name}/ %{_libdir}/libcliquer.so %changelog +* Thu Jun 17 2021 Jerry James - 1.22-1 +- Version 1.22 +- New URLs +- Drop upstreamed -sagemath patch +- Use autotools to build + * Tue Jan 26 2021 Fedora Release Engineering - 1.21-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild diff --git a/hamming.c b/hamming.c deleted file mode 100644 index 11ab412..0000000 --- a/hamming.c +++ /dev/null @@ -1,46 +0,0 @@ -#include -#include "cliquer.h" - -/* Function for determining the Hamming distance between - two words, c1 and c2, of length n */ -int distance(int c1, int c2, int n) { - int i, c, d; - - d = 0; - c = c1 ^ c2; - - for (i = 0; i < n; i++) { - if(c & 1) d++; - c >>= 1; - } - return d; -} - -int main(int argc, char *argv[]) { - int i, j; - int n, M, d; - int order; - int nr; - graph_t *g; - - if (argc!=4) { - fprintf(stderr,"%s \n",argv[0]); - return 1; - } - n = atoi(argv[1]); - M = atoi(argv[2]); - d = atoi(argv[3]); - - /* no timer */ - clique_default_options->time_function = NULL; - - order = 1 << n; - g = graph_new(order); - for (i = 0; i < order; i++) - for (j = i+1; j < order; j++) - if(distance(i,j,n) >= d) - GRAPH_ADD_EDGE(g,i,j); - nr = clique_find_all(g,M,M,FALSE,clique_default_options); - printf("Number of codes: %d\n",nr); - return 0; -} diff --git a/poly.c b/poly.c deleted file mode 100644 index cc7c881..0000000 --- a/poly.c +++ /dev/null @@ -1,169 +0,0 @@ -/* poly.c (needs tetromino.h) -This program demonstrates packing -tetrominoes (pieces made of four squares of equal size arranged -with coincident sides) on an n x m board so that no more tetrominoes -can fit. It takes four command-line arguments: -poly n m min max -where n and m are the dimensions of the board and min and max are -passed to clique_find_all as the number of pieces to fit on the -board. For example, -poly 5 5 3 3 -prints all the ways to fit three tetrominoes on a 5 x 5 board so that -no other tetrominoes could fit, and -poly 6 5 0 0 -finds all the ways to fit as many pieces as possible on a 6 x 5 board. -This program was inspired by Solomon W. Golomb's Puzzle Column -"Placing Pentominoes on Boards" in the IEEE Information Theory Society -Newsletter, Vol. 52, No. 2, June 2002, p. 7. */ - -#include -#include -#include "cliquer.h" - -#define POLYSIZE 4 - -struct polynomino { - char *name; - int sizex, sizey; - char block[POLYSIZE*POLYSIZE+1]; -}; - -#include "tetromino.h" - -#define VALUE(p,x,y) ((p)*boardsize+(y)*boardx+(x)) -#define PIECE(p) ((p)/(boardsize)) -#define POSX(p) ((p)%boardx) -#define POSY(p) (((p)%(boardsize))/boardx) - -static int boardx,boardy; -static int boardsize; -static int minpieces; -static int maxpieces; - -static graph_t *generate_graph(void); -static boolean print_clique(set_t s, graph_t *g, clique_options *opts); - -int main(int argc, char *argv[]) { - graph_t *g; - - if (argc!=5) { - fprintf(stderr,"%s " - "\n",argv[0]); - return 1; - } - boardx=atoi(argv[1]); - boardy=atoi(argv[2]); - boardsize=boardx*boardy; - minpieces=atoi(argv[3]); - maxpieces=atoi(argv[4]); - if ((boardx <= 0) || (boardy <= 0) || (maxpieces<0) || (minpieces<0)) { - fprintf(stderr,"Illegal arguments.\n"); - return 1; - } - - printf("Gen graph...\n"); - g=generate_graph(); - printf("Testing...\n"); - graph_test(g,stdout); - - clique_default_options->output=stderr; - clique_default_options->user_function=print_clique; - clique_find_all(g,minpieces,maxpieces,TRUE,NULL); - - return 0; -} - - -static boolean collides(int t1, int x1, int y1, int t2, int x2, int y2) { - int x,y; - - for (x=MAX(x1,x2); x boardx) - break; - for (y1=0; y1 boardy) - break; - for (t2=0; t2 boardx) - break; - for (y2=0; y2 boardy) - break; - if (!collides(t1,x1,y1,t2,x2,y2)) - GRAPH_ADD_EDGE(g, - VALUE(t1,x1,y1), - VALUE(t2,x2,y2)); - } - } - } - } - } - } - return g; -} - - - -static boolean print_clique(set_t s, graph_t *g, clique_options *opts) { - static char *buf=NULL; - int i,j,c,n; - int t,x,y; - - if (buf==NULL) { - buf=malloc((boardx*2+1)*boardy+10); - } - - c=0; - for (i=0; i= 0) { - t=PIECE(n); - x=POSX(n); - y=POSY(n); - - if (x+tetromino[t].sizex > boardx) - return TRUE; - if (y+tetromino[t].sizey > boardy) - return TRUE; - - for (i=0; i Date: Wed, 21 Jul 2021 14:38:38 +0000 Subject: [PATCH 16/32] - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild Signed-off-by: Fedora Release Engineering From b5d770ce8f620e30112a0c27c6c83de3efb1915c Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 21 Jul 2021 19:36:08 +0000 Subject: [PATCH 17/32] - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- cliquer.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cliquer.spec b/cliquer.spec index f3f1d17..75d9638 100644 --- a/cliquer.spec +++ b/cliquer.spec @@ -1,6 +1,6 @@ Name: cliquer Version: 1.22 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Find cliques in arbitrary weighted graphs License: GPLv2+ @@ -95,6 +95,9 @@ LD_LIBRARY_PATH=. make test CFLAGS="%build_cflags" %{_libdir}/libcliquer.so %changelog +* Wed Jul 21 2021 Fedora Release Engineering - 1.22-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + * Thu Jun 17 2021 Jerry James - 1.22-1 - Version 1.22 - New URLs From 4453fafed49e97e1850684cfd7a39468c5e05aea Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 19 Jan 2022 23:22:33 +0000 Subject: [PATCH 18/32] - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- cliquer.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cliquer.spec b/cliquer.spec index 75d9638..237a17d 100644 --- a/cliquer.spec +++ b/cliquer.spec @@ -1,6 +1,6 @@ Name: cliquer Version: 1.22 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Find cliques in arbitrary weighted graphs License: GPLv2+ @@ -95,6 +95,9 @@ LD_LIBRARY_PATH=. make test CFLAGS="%build_cflags" %{_libdir}/libcliquer.so %changelog +* Wed Jan 19 2022 Fedora Release Engineering - 1.22-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + * Wed Jul 21 2021 Fedora Release Engineering - 1.22-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild From 0f6afabef91f9776010a24cd3e506e858c8beeb4 Mon Sep 17 00:00:00 2001 From: Jerry James Date: Wed, 20 Jul 2022 08:52:55 -0600 Subject: [PATCH 19/32] Add README.md. --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..2144f2f --- /dev/null +++ b/README.md @@ -0,0 +1,6 @@ +# cliquer + +[Cliquer](https://users.aalto.fi/~pat/cliquer.html) is a set of C routines for +finding cliques in an arbitrary weighted graph. It uses an exact +branch-and-bound algorithm developed by Patric Östergård. It is designed with +the aim of being efficient while still being flexible and easy to use. From 48a67a8d34989788a0c75ea7df6482affd84d2d5 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 20 Jul 2022 23:06:27 +0000 Subject: [PATCH 20/32] Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- cliquer.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cliquer.spec b/cliquer.spec index 237a17d..c2a539d 100644 --- a/cliquer.spec +++ b/cliquer.spec @@ -1,6 +1,6 @@ Name: cliquer Version: 1.22 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Find cliques in arbitrary weighted graphs License: GPLv2+ @@ -95,6 +95,9 @@ LD_LIBRARY_PATH=. make test CFLAGS="%build_cflags" %{_libdir}/libcliquer.so %changelog +* Wed Jul 20 2022 Fedora Release Engineering - 1.22-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + * Wed Jan 19 2022 Fedora Release Engineering - 1.22-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild From a818cfe96c655a7f85b6517312e89b720e0e7e9c Mon Sep 17 00:00:00 2001 From: Jerry James Date: Tue, 20 Dec 2022 13:46:10 -0700 Subject: [PATCH 21/32] Convert License tag to SPDX. --- cliquer.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cliquer.spec b/cliquer.spec index c2a539d..7c0733b 100644 --- a/cliquer.spec +++ b/cliquer.spec @@ -3,7 +3,7 @@ Version: 1.22 Release: 4%{?dist} Summary: Find cliques in arbitrary weighted graphs -License: GPLv2+ +License: GPL-2.0-or-later URL: https://users.aalto.fi/~pat/cliquer.html Source0: https://github.com/dimpase/autocliquer/releases/download/v%{version}/%{name}-%{version}.tar.gz Source1: http://users.aalto.fi/~pat/%{name}/%{name}_fm.pdf @@ -95,6 +95,9 @@ LD_LIBRARY_PATH=. make test CFLAGS="%build_cflags" %{_libdir}/libcliquer.so %changelog +* Tue Dec 20 2022 Jerry James - 1.22-4 +- Convert License tag to SPDX + * Wed Jul 20 2022 Fedora Release Engineering - 1.22-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild From 5caa4802a41befc3752fb71bf54de2b3442ad5ae Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 19 Jan 2023 00:01:54 +0000 Subject: [PATCH 22/32] Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- cliquer.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cliquer.spec b/cliquer.spec index 7c0733b..7eff8ff 100644 --- a/cliquer.spec +++ b/cliquer.spec @@ -1,6 +1,6 @@ Name: cliquer Version: 1.22 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Find cliques in arbitrary weighted graphs License: GPL-2.0-or-later @@ -95,6 +95,9 @@ LD_LIBRARY_PATH=. make test CFLAGS="%build_cflags" %{_libdir}/libcliquer.so %changelog +* Thu Jan 19 2023 Fedora Release Engineering - 1.22-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + * Tue Dec 20 2022 Jerry James - 1.22-4 - Convert License tag to SPDX From 03b37bfcf200eb6fe46f77350ab1f6558df453ed Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 19 Jul 2023 15:52:24 +0000 Subject: [PATCH 23/32] Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- cliquer.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cliquer.spec b/cliquer.spec index 7eff8ff..e3c37c5 100644 --- a/cliquer.spec +++ b/cliquer.spec @@ -1,6 +1,6 @@ Name: cliquer Version: 1.22 -Release: 5%{?dist} +Release: 6%{?dist} Summary: Find cliques in arbitrary weighted graphs License: GPL-2.0-or-later @@ -95,6 +95,9 @@ LD_LIBRARY_PATH=. make test CFLAGS="%build_cflags" %{_libdir}/libcliquer.so %changelog +* Wed Jul 19 2023 Fedora Release Engineering - 1.22-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + * Thu Jan 19 2023 Fedora Release Engineering - 1.22-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild From bc40b2d6ede616bb697c2f047f36a6e2bccfbae6 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 19 Jan 2024 15:39:36 +0000 Subject: [PATCH 24/32] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- cliquer.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cliquer.spec b/cliquer.spec index e3c37c5..e763d0d 100644 --- a/cliquer.spec +++ b/cliquer.spec @@ -1,6 +1,6 @@ Name: cliquer Version: 1.22 -Release: 6%{?dist} +Release: 7%{?dist} Summary: Find cliques in arbitrary weighted graphs License: GPL-2.0-or-later @@ -95,6 +95,9 @@ LD_LIBRARY_PATH=. make test CFLAGS="%build_cflags" %{_libdir}/libcliquer.so %changelog +* Fri Jan 19 2024 Fedora Release Engineering - 1.22-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Wed Jul 19 2023 Fedora Release Engineering - 1.22-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild From 453952be78d21ca5d57f287dfe2107d40430feea Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 24 Jan 2024 07:27:32 +0000 Subject: [PATCH 25/32] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- cliquer.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cliquer.spec b/cliquer.spec index e763d0d..b471000 100644 --- a/cliquer.spec +++ b/cliquer.spec @@ -1,6 +1,6 @@ Name: cliquer Version: 1.22 -Release: 7%{?dist} +Release: 8%{?dist} Summary: Find cliques in arbitrary weighted graphs License: GPL-2.0-or-later @@ -95,6 +95,9 @@ LD_LIBRARY_PATH=. make test CFLAGS="%build_cflags" %{_libdir}/libcliquer.so %changelog +* Wed Jan 24 2024 Fedora Release Engineering - 1.22-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Fri Jan 19 2024 Fedora Release Engineering - 1.22-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From 54f46e700b5c5aba7bbbcf3fff4bbbfa0b3d0fe5 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 17 Jul 2024 19:28:56 +0000 Subject: [PATCH 26/32] Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild --- cliquer.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cliquer.spec b/cliquer.spec index b471000..41a8f90 100644 --- a/cliquer.spec +++ b/cliquer.spec @@ -1,6 +1,6 @@ Name: cliquer Version: 1.22 -Release: 8%{?dist} +Release: 9%{?dist} Summary: Find cliques in arbitrary weighted graphs License: GPL-2.0-or-later @@ -95,6 +95,9 @@ LD_LIBRARY_PATH=. make test CFLAGS="%build_cflags" %{_libdir}/libcliquer.so %changelog +* Wed Jul 17 2024 Fedora Release Engineering - 1.22-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + * Wed Jan 24 2024 Fedora Release Engineering - 1.22-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From 23f5583a848e041ccccd5c1f89f6e5603109317c Mon Sep 17 00:00:00 2001 From: Jerry James Date: Mon, 13 Jan 2025 14:19:28 -0700 Subject: [PATCH 27/32] Move configuration steps to %conf --- cliquer.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/cliquer.spec b/cliquer.spec index 41a8f90..fc408cb 100644 --- a/cliquer.spec +++ b/cliquer.spec @@ -42,6 +42,7 @@ Development files for cliquer. %autosetup -p1 cp -p %{SOURCE1} %{SOURCE2} %{SOURCE3} . +%conf sed -i \ 's/59 Temple Place, Suite 330, Boston, MA 02111-1307/51 Franklin Street, Suite 500, Boston, MA 02110-1335/' \ COPYING From 8e0b948290c4776837e2397d39d01e8f6dfe6b55 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 16 Jan 2025 13:56:33 +0000 Subject: [PATCH 28/32] Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild --- cliquer.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cliquer.spec b/cliquer.spec index fc408cb..9d44d7c 100644 --- a/cliquer.spec +++ b/cliquer.spec @@ -1,6 +1,6 @@ Name: cliquer Version: 1.22 -Release: 9%{?dist} +Release: 10%{?dist} Summary: Find cliques in arbitrary weighted graphs License: GPL-2.0-or-later @@ -96,6 +96,9 @@ LD_LIBRARY_PATH=. make test CFLAGS="%build_cflags" %{_libdir}/libcliquer.so %changelog +* Thu Jan 16 2025 Fedora Release Engineering - 1.22-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + * Wed Jul 17 2024 Fedora Release Engineering - 1.22-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild From 7855c6c77bfd2a522f5594740c24eb1a6c26872f Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 23 Jul 2025 18:24:16 +0000 Subject: [PATCH 29/32] Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild --- cliquer.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cliquer.spec b/cliquer.spec index 9d44d7c..689b794 100644 --- a/cliquer.spec +++ b/cliquer.spec @@ -1,6 +1,6 @@ Name: cliquer Version: 1.22 -Release: 10%{?dist} +Release: 11%{?dist} Summary: Find cliques in arbitrary weighted graphs License: GPL-2.0-or-later @@ -96,6 +96,9 @@ LD_LIBRARY_PATH=. make test CFLAGS="%build_cflags" %{_libdir}/libcliquer.so %changelog +* Wed Jul 23 2025 Fedora Release Engineering - 1.22-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + * Thu Jan 16 2025 Fedora Release Engineering - 1.22-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild From f425986493deb1dfefb8fd317d8117b6f7a1babb Mon Sep 17 00:00:00 2001 From: Jerry James Date: Sat, 9 Aug 2025 09:50:46 -0600 Subject: [PATCH 30/32] Convert to %autorelease and %autochangelog [skip changelog] --- changelog | 102 +++++++++++++++++++++++++++++++++++++++++++++++++ cliquer.spec | 105 +-------------------------------------------------- 2 files changed, 104 insertions(+), 103 deletions(-) create mode 100644 changelog diff --git a/changelog b/changelog new file mode 100644 index 0000000..2695ffc --- /dev/null +++ b/changelog @@ -0,0 +1,102 @@ +* Wed Jul 23 2025 Fedora Release Engineering - 1.22-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + +* Thu Jan 16 2025 Fedora Release Engineering - 1.22-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + +* Wed Jul 17 2024 Fedora Release Engineering - 1.22-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Wed Jan 24 2024 Fedora Release Engineering - 1.22-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jan 19 2024 Fedora Release Engineering - 1.22-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Wed Jul 19 2023 Fedora Release Engineering - 1.22-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Thu Jan 19 2023 Fedora Release Engineering - 1.22-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Tue Dec 20 2022 Jerry James - 1.22-4 +- Convert License tag to SPDX + +* Wed Jul 20 2022 Fedora Release Engineering - 1.22-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Wed Jan 19 2022 Fedora Release Engineering - 1.22-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Wed Jul 21 2021 Fedora Release Engineering - 1.22-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Thu Jun 17 2021 Jerry James - 1.22-1 +- Version 1.22 +- New URLs +- Drop upstreamed -sagemath patch +- Use autotools to build + +* Tue Jan 26 2021 Fedora Release Engineering - 1.21-20 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Mon Jul 27 2020 Fedora Release Engineering - 1.21-19 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue Jan 28 2020 Fedora Release Engineering - 1.21-18 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Wed Jul 24 2019 Fedora Release Engineering - 1.21-17 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Thu Jan 31 2019 Fedora Release Engineering - 1.21-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Thu Jul 12 2018 Fedora Release Engineering - 1.21-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Wed Feb 07 2018 Fedora Release Engineering - 1.21-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Wed Aug 02 2017 Fedora Release Engineering - 1.21-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 1.21-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Feb 10 2017 Fedora Release Engineering - 1.21-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Wed Feb 03 2016 Fedora Release Engineering - 1.21-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Wed Jun 17 2015 Fedora Release Engineering - 1.21-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Sat Aug 16 2014 Fedora Release Engineering - 1.21-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 1.21-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Sat Aug 03 2013 Fedora Release Engineering - 1.21-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Wed Feb 13 2013 Fedora Release Engineering - 1.21-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Wed Aug 15 2012 pcpa - 1.21-4 +- Do not hardcode version in shell commands (#825494) +- Correct permission of generated library and binary (#825494) + +* Tue Aug 14 2012 pcpa - 1.21-3 +- Remove %%defattr from spec (#825494) +- Correct mixed spaces and tabs in spec (#825494) +- Correct FSF address (#825494) +- Update information about sagemath patches to upstream cliquer (#825494) + +* Sat May 26 2012 pcpa - 1.21-2 +- Add sagemath patch interface + +* Wed Nov 16 2011 Jerry James - 1.21-1 +- Initial RPM diff --git a/cliquer.spec b/cliquer.spec index 689b794..de4a836 100644 --- a/cliquer.spec +++ b/cliquer.spec @@ -1,6 +1,6 @@ Name: cliquer Version: 1.22 -Release: 11%{?dist} +Release: %autorelease Summary: Find cliques in arbitrary weighted graphs License: GPL-2.0-or-later @@ -96,105 +96,4 @@ LD_LIBRARY_PATH=. make test CFLAGS="%build_cflags" %{_libdir}/libcliquer.so %changelog -* Wed Jul 23 2025 Fedora Release Engineering - 1.22-11 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild - -* Thu Jan 16 2025 Fedora Release Engineering - 1.22-10 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild - -* Wed Jul 17 2024 Fedora Release Engineering - 1.22-9 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild - -* Wed Jan 24 2024 Fedora Release Engineering - 1.22-8 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild - -* Fri Jan 19 2024 Fedora Release Engineering - 1.22-7 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild - -* Wed Jul 19 2023 Fedora Release Engineering - 1.22-6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild - -* Thu Jan 19 2023 Fedora Release Engineering - 1.22-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild - -* Tue Dec 20 2022 Jerry James - 1.22-4 -- Convert License tag to SPDX - -* Wed Jul 20 2022 Fedora Release Engineering - 1.22-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild - -* Wed Jan 19 2022 Fedora Release Engineering - 1.22-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild - -* Wed Jul 21 2021 Fedora Release Engineering - 1.22-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild - -* Thu Jun 17 2021 Jerry James - 1.22-1 -- Version 1.22 -- New URLs -- Drop upstreamed -sagemath patch -- Use autotools to build - -* Tue Jan 26 2021 Fedora Release Engineering - 1.21-20 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild - -* Mon Jul 27 2020 Fedora Release Engineering - 1.21-19 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild - -* Tue Jan 28 2020 Fedora Release Engineering - 1.21-18 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild - -* Wed Jul 24 2019 Fedora Release Engineering - 1.21-17 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - -* Thu Jan 31 2019 Fedora Release Engineering - 1.21-16 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - -* Thu Jul 12 2018 Fedora Release Engineering - 1.21-15 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - -* Wed Feb 07 2018 Fedora Release Engineering - 1.21-14 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - -* Wed Aug 02 2017 Fedora Release Engineering - 1.21-13 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild - -* Wed Jul 26 2017 Fedora Release Engineering - 1.21-12 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild - -* Fri Feb 10 2017 Fedora Release Engineering - 1.21-11 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild - -* Wed Feb 03 2016 Fedora Release Engineering - 1.21-10 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild - -* Wed Jun 17 2015 Fedora Release Engineering - 1.21-9 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild - -* Sat Aug 16 2014 Fedora Release Engineering - 1.21-8 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild - -* Sat Jun 07 2014 Fedora Release Engineering - 1.21-7 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild - -* Sat Aug 03 2013 Fedora Release Engineering - 1.21-6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild - -* Wed Feb 13 2013 Fedora Release Engineering - 1.21-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild - -* Wed Aug 15 2012 pcpa - 1.21-4 -- Do not hardcode version in shell commands (#825494) -- Correct permission of generated library and binary (#825494) - -* Tue Aug 14 2012 pcpa - 1.21-3 -- Remove %%defattr from spec (#825494) -- Correct mixed spaces and tabs in spec (#825494) -- Correct FSF address (#825494) -- Update information about sagemath patches to upstream cliquer (#825494) - -* Sat May 26 2012 pcpa - 1.21-2 -- Add sagemath patch interface - -* Wed Nov 16 2011 Jerry James - 1.21-1 -- Initial RPM +%autochangelog From 53d3b70b3fb8ce3c06e6d5cb3cd4859c70c85d77 Mon Sep 17 00:00:00 2001 From: Jerry James Date: Sat, 9 Aug 2025 09:56:46 -0600 Subject: [PATCH 31/32] Version 1.23 --- cliquer.spec | 8 +++----- sources | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/cliquer.spec b/cliquer.spec index de4a836..c78858d 100644 --- a/cliquer.spec +++ b/cliquer.spec @@ -1,5 +1,5 @@ Name: cliquer -Version: 1.22 +Version: 1.23 Release: %autorelease Summary: Find cliques in arbitrary weighted graphs @@ -65,9 +65,6 @@ sed -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \ # Add missing executable bit chmod 0755 %{buildroot}%{_libdir}/libcliquer.so.1.* -# We do not want the libtool archive -rm %{buildroot}%{_libdir}/*.la - # We do not want to install the examples rm -fr %{buildroot}%{_datadir}/%{name} @@ -79,7 +76,7 @@ mkdir -p %{buildroot}%{_mandir}/man1 cp -p %{SOURCE4} %{buildroot}%{_mandir}/man1 %check -LD_LIBRARY_PATH=. make test CFLAGS="%build_cflags" +LD_LIBRARY_PATH=$PWD make test %files %doc cliquer*.pdf @@ -94,6 +91,7 @@ LD_LIBRARY_PATH=. make test CFLAGS="%build_cflags" %files devel %{_includedir}/%{name}/ %{_libdir}/libcliquer.so +%{_libdir}/pkgconfig/libcliquer.pc %changelog %autochangelog diff --git a/sources b/sources index b72485a..07f364d 100644 --- a/sources +++ b/sources @@ -1,4 +1,4 @@ -SHA512 (cliquer-1.22.tar.gz) = 3285cb0a3987ff730d9f9b25419a98201f399daf28444179ba8902211ddda87adcc7189f5b94f062d0648039a1b6217b80c8db482887d7dc8552b20459eff861 +SHA512 (cliquer-1.23.tar.gz) = ba3af2de31bfc34a742af7ee6edead648b0acc2b47c2afcc3a408ffb651c4d424778bf1aa41dd843a3028c7d30f4daa15b15964b8fac2e1b36686eebc85acf3c SHA512 (cliquer.pdf) = 00d0bbcef826b301a563121868aa63fc420857b162211c74c5d09750f6a6e3a17cf184b783b2517f7af87296c896f55073331d608799101d0377f679269d9f36 SHA512 (cliquer_bm.pdf) = 50a4114e99c806b2149d9397fb6cb78a45d9be12b6fabe9b787cee180a593ce12d47698056f4c4a387ee99fea099c9517441d05b8fbc346bc2a86777d2dfed6d SHA512 (cliquer_fm.pdf) = a82947612f79aef90f6343f1c4d50977f42bd26c3548965092b9dcffd1003a525beeef5631fe85c5f5a779938e9f608b4cc6baffd75379d1ed92b48309cae9df From 3e2499ac3e3b07a7ba0be19b7a552c64e40e0327 Mon Sep 17 00:00:00 2001 From: Jerry James Date: Sun, 11 Jan 2026 18:45:55 -0700 Subject: [PATCH 32/32] Reflow the description text - Be more precise about globbing in %files --- cliquer.spec | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/cliquer.spec b/cliquer.spec index c78858d..f402c59 100644 --- a/cliquer.spec +++ b/cliquer.spec @@ -18,18 +18,18 @@ BuildRequires: gcc BuildRequires: make %description -The main cliquer package contains a command-line interface to the -cliquer library. Note that the upstream binary name is "cl", which is -too generic for Fedora. Therefore, the binary is named "cliquer". +The main cliquer package contains a command-line interface to the cliquer +library. Note that the upstream binary name is "cl", which is too generic for +Fedora. Therefore, the binary is named "cliquer". %package libs Summary: Library to find cliques in arbitrary weighted graphs %description libs -Cliquer is a set of C routines for finding cliques in an arbitrary -weighted graph. It uses an exact branch-and-bound algorithm developed -by Patric Östergård. It is designed with the aim of being efficient -while still being flexible and easy to use. +Cliquer is a set of C routines for finding cliques in an arbitrary weighted +graph. It uses an exact branch-and-bound algorithm developed by Patric +Östergård. It is designed with the aim of being efficient while still being +flexible and easy to use. %package devel Summary: Development files for cliquer @@ -86,7 +86,7 @@ LD_LIBRARY_PATH=$PWD make test %files libs %doc ChangeLog README %license COPYING -%{_libdir}/libcliquer.so.1* +%{_libdir}/libcliquer.so.1{,.*} %files devel %{_includedir}/%{name}/