Compare commits

21 Commits

Author SHA256 Message Date
4d656833f6 Add Gitea build results 2025-08-12 18:15:03 +02:00
f59e7a2dcd Accepting request 1244430 from devel:languages:perl
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1244430
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Linux-Inotify2?expand=0&rev=31
2025-02-09 19:07:26 +00:00
6d05ed039b - Normalize CPAN version
See https://github.com/openSUSE/cpanspec/issues/47 for details

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Linux-Inotify2?expand=0&rev=29
2025-02-06 22:26:35 +00:00
e5524113a9 Normalize CPAN version
See https://github.com/openSUSE/cpanspec/issues/47 for details

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Linux-Inotify2?expand=0&rev=28
2025-02-05 16:24:12 +00:00
6e563d8807 Accepting request 909807 from devel:languages:perl
OBS-URL: https://build.opensuse.org/request/show/909807
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Linux-Inotify2?expand=0&rev=30
2021-08-03 20:48:35 +00:00
2fed4c605c Accepting request 909786 from devel:languages:perl:autoupdate
- updated to 2.3
   see /usr/share/doc/packages/perl-Linux-Inotify2/Changes
  2.3 
          - 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.

OBS-URL: https://build.opensuse.org/request/show/909786
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Linux-Inotify2?expand=0&rev=27
2021-08-02 14:13:55 +00:00
1665d67ae2 Accepting request 755494 from devel:languages:perl
- updated to 2.2
   see /usr/share/doc/packages/perl-Linux-Inotify2/Changes
  2.2 
  	- define IN_EXCL_UNLINK to 0 if it is missing, for the benefit of
            antique systems that lack this symbol.

OBS-URL: https://build.opensuse.org/request/show/755494
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Linux-Inotify2?expand=0&rev=29
2019-12-10 21:43:29 +00:00
119f4156e8 Accepting request 755478 from devel:languages:perl:autoupdate
- updated to 2.2
   see /usr/share/doc/packages/perl-Linux-Inotify2/Changes
  2.2 
  	- define IN_EXCL_UNLINK to 0 if it is missing, for the benefit of
            antique systems that lack this symbol.

OBS-URL: https://build.opensuse.org/request/show/755478
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Linux-Inotify2?expand=0&rev=25
2019-12-10 09:16:16 +00:00
017623e43a Accepting request 647377 from devel:languages:perl
OBS-URL: https://build.opensuse.org/request/show/647377
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Linux-Inotify2?expand=0&rev=28
2018-11-12 08:41:06 +00:00
cc8cdfa6ce Accepting request 647376 from devel:languages:perl:autoupdate
- updated to 2.1
   see /usr/share/doc/packages/perl-Linux-Inotify2/Changes
  2.1  
  	- damn, left debugging code not caught by tests (reported by losyme).
  
  2.0  
  	- 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.

OBS-URL: https://build.opensuse.org/request/show/647376
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Linux-Inotify2?expand=0&rev=23
2018-11-08 16:09:27 +00:00
Stephan Kulow
8fad29fae2 Accepting request 142361 from devel:languages:perl
- fix check-build.sh to work with kernel > 3.0 (forwarded request 141628 from oertel)

OBS-URL: https://build.opensuse.org/request/show/142361
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Linux-Inotify2?expand=0&rev=24
2012-11-22 15:53:25 +00:00
Lars Vogdt
9db529648d Accepting request 141628 from home:oertel:branches:devel:languages:perl
- fix check-build.sh to work with kernel > 3.0

OBS-URL: https://build.opensuse.org/request/show/141628
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Linux-Inotify2?expand=0&rev=21
2012-11-22 10:36:25 +00:00
Stephan Kulow
5673c0343a replace license with spdx.org variant
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Linux-Inotify2?expand=0&rev=22
2011-12-06 17:43:43 +00:00
Stephan Kulow
8f1afc3a5b Accepting request 92217 from devel:languages:perl
update

OBS-URL: https://build.opensuse.org/request/show/92217
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Linux-Inotify2?expand=0&rev=21
2011-11-21 11:42:11 +00:00
Stephan Kulow
5234b3b642 use original .tar.gz
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Linux-Inotify2?expand=0&rev=18
2011-11-18 11:36:24 +00:00
Stephan Kulow
de3c17a051 remove bz2
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Linux-Inotify2?expand=0&rev=17
2011-11-17 14:19:48 +00:00
Stephan Kulow
60d32e22d1 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Linux-Inotify2?expand=0&rev=16 2011-11-11 11:19:28 +00:00
Sascha Peilicke
e33bcf2314 Autobuild autoformatter for 73955
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Linux-Inotify2?expand=0&rev=19
2011-06-17 09:23:18 +00:00
OBS User buildservice-autocommit
42259e5754 Accepting request 73955 from devel:languages:perl
baserev update by copy to link target

OBS-URL: https://build.opensuse.org/request/show/73955
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Linux-Inotify2?expand=0&rev=15
2011-06-17 09:23:08 +00:00
Vítězslav Čížek
cbe1588e93 - update to 1.22
- use a more useful definition of IN_xxx methods - any bits, not
          a match. (pointed out by Anatoliy Grishayev).
        - slightly reworked the documentation.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Linux-Inotify2?expand=0&rev=14
2011-06-16 07:53:58 +00:00
OBS User buildservice-autocommit
008381f422 Updating link to change in openSUSE:Factory/perl-Linux-Inotify2 revision 17.0
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Linux-Inotify2?expand=0&rev=df202c9285a39217ffd48e8056318539
2011-03-18 09:24:13 +00:00
7 changed files with 149 additions and 31 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:eb8914ef336b46ebd90037270d85c55f622c37c4100ee52cc793ea549bd84bcc
size 8434

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:cb99150f9ffa51dbc3be5ee98d8e91c98cdfeae22eb88e718f2cf367bf270d17
size 10439

12
README.md Normal file
View File

@@ -0,0 +1,12 @@
## Build Results
Current state of perl in openSUSE:Factory is
![Factory build results](https://br.opensuse.org/status/openSUSE:Factory/perl-Linux-Inotify2/standard)
The current state of perl in the devel project build (devel:languages:perl)
![Devel project build results](https://br.opensuse.org/status/devel:languages:perl/perl-Linux-Inotify2)

View File

@@ -2,7 +2,9 @@
# get kernel version
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
exit 1
fi

28
cpanspec.yml Normal file
View 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

View File

@@ -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

View File

@@ -1,7 +1,7 @@
#
# 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
# remain the property of their copyright owners, unless otherwise agreed
@@ -12,36 +12,57 @@
# license that conforms to the Open Source Definition (Version 1.9)
# 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
Summary: scalable directory/file change notification
Version: 1.22
Release: 13
Group: Development/Libraries/Perl
License: GPL+ or Artistic
Url: http://www.cpan.org/modules/by-module/Linux/
Source: Linux-Inotify2-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl perl-common-sense perl-macros
Requires: perl-common-sense
Version: 2.300.0
Release: 0
# 2.3 -> normalize -> 2.300.0
%define cpan_version 2.3
#Upstream: CHECK(Artistic-1.0 or GPL-1.0-or-later)
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Scalable directory/file change notification
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/M/ML/MLEHMANN/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
Source100: README.md
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}
%description
This module implements an interface to the Linux 2.6.13 and later
Inotify file/directory change notification sytem.
This module implements an interface to the Linux 2.6.13 and later Inotify
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
%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
perl Makefile.PL
make %{?_smp_mflags}
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
%make_build
%check
make test
@@ -49,15 +70,10 @@ make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc README Changes MANIFEST COPYING
%doc %{_mandir}/man3/*Inotify2*.gz
%{perl_vendorarch}/auto/Linux
%{perl_vendorarch}/Linux
%files -f %{name}.files
%doc Changes README
%license COPYING
%changelog