forked from pool/perl-Linux-Inotify2
		
	Compare commits
	
		
			20 Commits
		
	
	
		
	
	| Author | SHA256 | Date | |
|---|---|---|---|
| 5183cc3eff | |||
| 65ee3d57c5 | |||
| c2dd44fb67 | |||
| 97384d3474 | |||
| c51d2777e8 | |||
| 8136d7bcb8 | |||
| 1b4b9de693 | |||
| c03d3ae623 | |||
| 54e3730931 | |||
|  | 1ea938a2a0 | ||
|  | 948b3edc5a | ||
|  | 5be3b6dda8 | ||
|  | 0b48d35e06 | ||
|  | c55a7608ac | ||
|  | 0c3ae4f4af | ||
|  | 4bae3f5ca2 | ||
|  | 5ef56b88ff | ||
|  | 811e05301f | ||
|  | 24da125823 | ||
|  | 008381f422 | 
| @@ -1,3 +0,0 @@ | |||||||
| version https://git-lfs.github.com/spec/v1 |  | ||||||
| oid sha256:eb8914ef336b46ebd90037270d85c55f622c37c4100ee52cc793ea549bd84bcc |  | ||||||
| size 8434 |  | ||||||
							
								
								
									
										3
									
								
								Linux-Inotify2-2.3.tar.gz
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								Linux-Inotify2-2.3.tar.gz
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,3 @@ | |||||||
|  | version https://git-lfs.github.com/spec/v1 | ||||||
|  | oid sha256:cb99150f9ffa51dbc3be5ee98d8e91c98cdfeae22eb88e718f2cf367bf270d17 | ||||||
|  | size 10439 | ||||||
| @@ -2,7 +2,9 @@ | |||||||
|  |  | ||||||
| # get kernel version | # get kernel version | ||||||
| OFS="$IFS" ; IFS=".-" ; version=(`uname -r`) ; IFS="$OIFS" | OFS="$IFS" ; IFS=".-" ; version=(`uname -r`) ; IFS="$OIFS" | ||||||
| if test ${version[0]} -lt 2 -o ${version[1]} -lt 6 -o ${version[2]} -lt 15 ; then | if test ${version[0]} -gt 2 ; then | ||||||
|  |         : # okay | ||||||
|  | elif test ${version[0]} -lt 2 -o ${version[1]} -lt 6 -o ${version[2]} -lt 15 ; then | ||||||
|         echo "FATAL: kernel too old, need kernel >= 2.6.15 for this package" 1>&2 |         echo "FATAL: kernel too old, need kernel >= 2.6.15 for this package" 1>&2 | ||||||
|         exit 1                                                                    |         exit 1                                                                    | ||||||
| fi                                                                                | fi                                                                                | ||||||
|   | |||||||
							
								
								
									
										28
									
								
								cpanspec.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								cpanspec.yml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,28 @@ | |||||||
|  | --- | ||||||
|  | #description_paragraphs: 3 | ||||||
|  | #description: |- | ||||||
|  | #  override description from CPAN | ||||||
|  | #summary: override summary from CPAN | ||||||
|  | #no_testing: broken upstream | ||||||
|  | #sources: | ||||||
|  | #  - source1 | ||||||
|  | #  - source2 | ||||||
|  | #patches: | ||||||
|  | #  foo.patch: -p1 | ||||||
|  | #  bar.patch: | ||||||
|  | #preamble: |- | ||||||
|  | # BuildRequires:  gcc-c++ | ||||||
|  | #post_prep: |- | ||||||
|  | # hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s,  *,,g'` | ||||||
|  | # sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL  | ||||||
|  | #post_build: |- | ||||||
|  | # rm unused.files | ||||||
|  | #post_install: |- | ||||||
|  | # sed on %{name}.files | ||||||
|  | license: GPL-1.0-or-later or Artistic-1.0 | ||||||
|  | #skip_noarch: 1 | ||||||
|  | #custom_build: |- | ||||||
|  | #./Build build flags=%{?_smp_mflags} --myflag | ||||||
|  | #custom_test: |- | ||||||
|  | #startserver && make test | ||||||
|  | #ignore_requires: Bizarre::Module | ||||||
| @@ -1,3 +1,63 @@ | |||||||
|  | ------------------------------------------------------------------- | ||||||
|  | Thu Feb  6 22:26:28 UTC 2025 - Tina Müller <tina.mueller@suse.com> | ||||||
|  |  | ||||||
|  | - Normalize CPAN version | ||||||
|  |   See https://github.com/openSUSE/cpanspec/issues/47 for details | ||||||
|  |  | ||||||
|  | ------------------------------------------------------------------- | ||||||
|  | Sun Aug  1 03:07:57 UTC 2021 - Tina Müller <timueller+perl@suse.de> | ||||||
|  |  | ||||||
|  | - updated to 2.3 | ||||||
|  |    see /usr/share/doc/packages/perl-Linux-Inotify2/Changes | ||||||
|  |  | ||||||
|  |   2.3 Sat Jul 31 13:45:51 CEST 2021 | ||||||
|  |           - store a filehandle internally so it gets perl's CLOEXEC flag as needed. also | ||||||
|  |             gets rid of the destructor and the internal close function for added space | ||||||
|  |             savings (reported by Eric Wong). | ||||||
|  |   	- add new ->fh accessor. | ||||||
|  |  | ||||||
|  | ------------------------------------------------------------------- | ||||||
|  | Tue Dec 10 03:12:26 UTC 2019 -  <timueller+perl@suse.de> | ||||||
|  |  | ||||||
|  | - updated to 2.2 | ||||||
|  |    see /usr/share/doc/packages/perl-Linux-Inotify2/Changes | ||||||
|  |  | ||||||
|  |   2.2 Mon Dec  9 04:09:05 CET 2019 | ||||||
|  |   	- define IN_EXCL_UNLINK to 0 if it is missing, for the benefit of | ||||||
|  |             antique systems that lack this symbol. | ||||||
|  |  | ||||||
|  | ------------------------------------------------------------------- | ||||||
|  | Thu Nov  8 06:30:22 UTC 2018 - Stephan Kulow <coolo@suse.com> | ||||||
|  |  | ||||||
|  | - updated to 2.1 | ||||||
|  |    see /usr/share/doc/packages/perl-Linux-Inotify2/Changes | ||||||
|  |  | ||||||
|  |   2.1  Fri Oct 26 03:16:03 CEST 2018 | ||||||
|  |   	- damn, left debugging code not caught by tests (reported by losyme). | ||||||
|  |    | ||||||
|  |   2.0  Thu Oct 25 03:19:08 CEST 2018 | ||||||
|  |   	- fix poll and read documentation w.r.t. errors - this changes the | ||||||
|  |             documented API, but is how the module has always behaved. | ||||||
|  |   	- mention https://lwn.net/Articles/605128/ in the docs. | ||||||
|  |   	- new on_overflow callback, called for overflow events. | ||||||
|  |           - new ->broadcast method that calls all watchers with some event. | ||||||
|  |           - automatically broadcast overflow events to all watchers by default. | ||||||
|  |   	- read now returns all events (except ignored ones), not just ones | ||||||
|  |             it has registered watchers for (e.g. overflow events). | ||||||
|  |   	- reduced dependencies (Mike Pomraning). | ||||||
|  |           - add IN_EXCL_UNLINK flag. | ||||||
|  |           - more efficient constant initialisation. | ||||||
|  |  | ||||||
|  | ------------------------------------------------------------------- | ||||||
|  | Sat Nov 17 12:03:02 CET 2012 - ro@suse.de | ||||||
|  |  | ||||||
|  | - fix check-build.sh to work with kernel > 3.0  | ||||||
|  |  | ||||||
|  | ------------------------------------------------------------------- | ||||||
|  | Fri Nov 18 11:08:49 UTC 2011 - coolo@suse.com | ||||||
|  |  | ||||||
|  | - use original .tar.gz | ||||||
|  |  | ||||||
| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ||||||
| Thu Jun 16 07:37:42 UTC 2011 - vcizek@novell.com | Thu Jun 16 07:37:42 UTC 2011 - vcizek@novell.com | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,7 +1,7 @@ | |||||||
| # | # | ||||||
| # spec file for package perl-Linux-Inotify2 | # spec file for package perl-Linux-Inotify2 | ||||||
| # | # | ||||||
| # Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. | # Copyright (c) 2025 SUSE LLC | ||||||
| # | # | ||||||
| # All modifications and additions to the file contributed by third parties | # All modifications and additions to the file contributed by third parties | ||||||
| # remain the property of their copyright owners, unless otherwise agreed | # remain the property of their copyright owners, unless otherwise agreed | ||||||
| @@ -12,36 +12,56 @@ | |||||||
| # license that conforms to the Open Source Definition (Version 1.9) | # license that conforms to the Open Source Definition (Version 1.9) | ||||||
| # published by the Open Source Initiative. | # published by the Open Source Initiative. | ||||||
|  |  | ||||||
| # Please submit bugfixes or comments via http://bugs.opensuse.org/ | # Please submit bugfixes or comments via https://bugs.opensuse.org/ | ||||||
| # | # | ||||||
|  |  | ||||||
|  |  | ||||||
|  | %define cpan_name Linux-Inotify2 | ||||||
| Name:           perl-Linux-Inotify2 | Name:           perl-Linux-Inotify2 | ||||||
| Summary:        scalable directory/file change notification | Version:        2.300.0 | ||||||
| Version:        1.22 | Release:        0 | ||||||
| Release:        13 | # 2.3 -> normalize -> 2.300.0 | ||||||
| Group:          Development/Libraries/Perl | %define cpan_version 2.3 | ||||||
| License:        GPL+ or Artistic | #Upstream: CHECK(Artistic-1.0 or GPL-1.0-or-later) | ||||||
| Url:            http://www.cpan.org/modules/by-module/Linux/ | License:        Artistic-1.0 OR GPL-1.0-or-later | ||||||
| Source:         Linux-Inotify2-%{version}.tar.bz2 | Summary:        Scalable directory/file change notification | ||||||
| BuildRoot:      %{_tmppath}/%{name}-%{version}-build | URL:            https://metacpan.org/release/%{cpan_name} | ||||||
| BuildRequires:  perl perl-common-sense perl-macros | Source0:        https://cpan.metacpan.org/authors/id/M/ML/MLEHMANN/%{cpan_name}-%{cpan_version}.tar.gz | ||||||
| Requires:       perl-common-sense | Source1:        cpanspec.yml | ||||||
|  | BuildRequires:  perl | ||||||
|  | BuildRequires:  perl-macros | ||||||
|  | BuildRequires:  perl(common::sense) | ||||||
|  | Requires:       perl(common::sense) | ||||||
|  | Provides:       perl(Linux::Inotify2) = %{version} | ||||||
|  | Provides:       perl(Linux::Inotify2::Event) | ||||||
|  | Provides:       perl(Linux::Inotify2::Watch) | ||||||
|  | %undefine       __perllib_provides | ||||||
| %{perl_requires} | %{perl_requires} | ||||||
|  |  | ||||||
| %description | %description | ||||||
| This module implements an interface to the Linux 2.6.13 and later | This module implements an interface to the Linux 2.6.13 and later Inotify | ||||||
| Inotify file/directory change notification sytem. | file/directory change notification system. | ||||||
|  |  | ||||||
|  | It has a number of advantages over the Linux::Inotify module: | ||||||
|  |  | ||||||
|  |    - it is portable (Linux::Inotify only works on x86) | ||||||
|  |    - the equivalent of fullname works correctly | ||||||
|  |    - it is better documented | ||||||
|  |    - it has callback-style interface, which is better suited for | ||||||
|  |      integration. | ||||||
|  |  | ||||||
|  | As for the inotify API itself - it is a very tricky, and somewhat | ||||||
|  | unreliable API. For a good overview of the challenges you might run into, | ||||||
|  | see this LWN article: https://lwn.net/Articles/605128/. | ||||||
|  |  | ||||||
| %prep | %prep | ||||||
| %setup -q -n Linux-Inotify2-%{version} | %autosetup  -n %{cpan_name}-%{cpan_version} -p1 | ||||||
|  |  | ||||||
|  | find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644 | ||||||
|  |  | ||||||
| %build | %build | ||||||
| perl Makefile.PL | perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" | ||||||
| make %{?_smp_mflags} | %make_build | ||||||
|  |  | ||||||
| %check | %check | ||||||
| make test | make test | ||||||
| @@ -49,15 +69,10 @@ make test | |||||||
| %install | %install | ||||||
| %perl_make_install | %perl_make_install | ||||||
| %perl_process_packlist | %perl_process_packlist | ||||||
|  | %perl_gen_filelist | ||||||
|  |  | ||||||
| %clean | %files -f %{name}.files | ||||||
| rm -rf $RPM_BUILD_ROOT | %doc Changes README | ||||||
|  | %license COPYING | ||||||
| %files |  | ||||||
| %defattr(-,root,root) |  | ||||||
| %doc README Changes MANIFEST COPYING |  | ||||||
| %doc %{_mandir}/man3/*Inotify2*.gz |  | ||||||
| %{perl_vendorarch}/auto/Linux |  | ||||||
| %{perl_vendorarch}/Linux |  | ||||||
|  |  | ||||||
| %changelog | %changelog | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user